Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001546/0.001546, allocations: 164.9 kB / 23.95 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.484/1.484, allocations: 177.2 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 325 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.559e-05/2.688e-05, allocations: 2.281 kB / 325 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003507/0.003533, allocations: 2.015 MB / 327.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.004893, allocations: 0.5756 MB / 327.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.005045, allocations: 7.281 kB / 327.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000176/0.005221, allocations: 22.08 kB / 327.7 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002258/0.005446, allocations: 40.23 kB / 327.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003468/0.005793, allocations: 67.02 kB / 327.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.006033, allocations: 133.9 kB / 327.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.006215, allocations: 37.97 kB / 327.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.006385, allocations: 79.94 kB / 328 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.006497, allocations: 42.84 kB / 328.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.86e-05/0.006536, allocations: 10.5 kB / 328.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.061e-05/0.006566, allocations: 9.969 kB / 328.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.741e-05/0.006654, allocations: 37.03 kB / 328.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.243e-05/0.006736, allocations: 49.09 kB / 328.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003325/0.007068, allocations: 143.8 kB / 328.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.007073, allocations: 1.531 kB / 328.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.007075, allocations: 0 / 328.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.007081, allocations: 0 / 328.3 MB, free: 14.5 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007866/0.007867, allocations: 376.9 kB / 328.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.007913, allocations: 10.41 kB / 328.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.329e-05/0.007976, allocations: 17.64 kB / 328.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003375/0.008313, allocations: 169.5 kB / 328.9 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.008333, allocations: 10.62 kB / 328.9 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.944e-05/0.008372, allocations: 11.97 kB / 328.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006155/0.008988, allocations: 255 kB / 329.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.009005, allocations: 192 / 329.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.009024, allocations: 10.3 kB / 329.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.009035, allocations: 8.375 kB / 329.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002952/0.009331, allocations: 90.77 kB / 329.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007212/0.01005, allocations: 497.5 kB / 329.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004049/0.01046, allocations: 139.9 kB / 329.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.01064, allocations: 75.38 kB / 329.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.01067, allocations: 7.125 kB / 329.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.01071, allocations: 38.14 kB / 330 MB, free: 13.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/0.01071, allocations: 0 / 330 MB, free: 13.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006037/0.01131, allocations: 184.7 kB / 330.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.01142, allocations: 115.9 kB / 330.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001949/0.01162, allocations: 156.6 kB / 330.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.01164, allocations: 30.89 kB / 330.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.223e-05/0.01173, allocations: 117.3 kB / 330.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.943e-05/0.01176, allocations: 29.23 kB / 330.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.125e-05/0.01182, allocations: 28.12 kB / 330.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.01202, allocations: 328.1 kB / 330.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.01213, allocations: 26.34 kB / 331 MB, free: 12.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.0123, allocations: 76.73 kB / 331 MB, free: 12.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002723/0.01257, allocations: 115.9 kB / 331.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01257, allocations: 1.562 kB / 331.2 MB, free: 12.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003571/0.01293, allocations: 135.5 kB / 331.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.01295, allocations: 6.719 kB / 331.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.01296, allocations: 2.438 kB / 331.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/0.01298, allocations: 2.156 kB / 331.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.01312, allocations: 34.88 kB / 331.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.01312, allocations: 2.047 kB / 331.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.01323, allocations: 25.81 kB / 331.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.01324, allocations: 5.188 kB / 331.4 MB, free: 12.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001371/0.01338, allocations: 132.3 kB / 331.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.01355, allocations: 93.41 kB / 331.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.29e-05/0.01364, allocations: 19.59 kB / 331.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.01364, allocations: 6.156 kB / 331.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.01365, allocations: 1.125 kB / 331.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.01366, allocations: 2.406 kB / 331.6 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002748/0.01393, allocations: 143.8 kB / 331.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.01393, allocations: 0 / 331.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.01412, allocations: 33.7 kB / 331.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-06/0.01412, allocations: 2.703 kB / 331.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.01414, allocations: 1.734 kB / 331.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.01414, allocations: 5.312 kB / 331.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.01415, allocations: 1.625 kB / 331.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006612/0.01481, allocations: 394.1 kB / 332.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.343e-05/0.01488, allocations: 30.23 kB / 332.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.01491, allocations: 5.953 kB / 332.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.01511, allocations: 11.16 kB / 332.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/0.01516, allocations: 5.609 kB / 332.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.01517, allocations: 12.25 kB / 332.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001024/0.01527, allocations: 119.5 kB / 332.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01527, allocations: 0 / 332.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004714/0.01574, allocations: 31.73 kB / 332.4 MB, free: 11.3 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001347/0.01588, allocations: 105.8 kB / 332.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003344/0.01621, allocations: 93.14 kB / 332.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.01621, allocations: 4.062 kB / 332.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.01632, allocations: 31.94 kB / 332.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005524/0.01687, allocations: 58.64 kB / 332.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007582/0.01763, allocations: 369.4 kB / 333 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001289/0.01776, allocations: 107.5 kB / 333.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.594e-05/0.0178, allocations: 13.64 kB / 333.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.991e-05/0.01784, allocations: 13.66 kB / 333.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.01785, allocations: 0 / 333.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of Templates: time 0.00467/0.02251, allocations: 1.359 MB / 334.5 MB, free: 10.06 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.432179346680641]