Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.003133/0.003133, allocations: 83.89 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9831/0.9831, allocations: 173.3 MB / 201.1 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 268 MB, free: 6.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.915e-05/2.092e-05, allocations: 2.312 kB / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002652/0.002673, allocations: 2.109 MB / 270.1 MB, free: 4.344 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008645/0.003537, allocations: 0.4946 MB / 270.6 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.003672, allocations: 4 kB / 270.6 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.003812, allocations: 19.8 kB / 270.6 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.375e-05/0.003896, allocations: 31.72 kB / 270.6 MB, free: 3.789 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.004222, allocations: 59.86 kB / 270.7 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001707/0.004392, allocations: 123.5 kB / 270.8 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.004529, allocations: 45.97 kB / 270.8 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.004632, allocations: 71.86 kB / 270.9 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.781e-05/0.00473, allocations: 47.81 kB / 271 MB, free: 3.438 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.177e-05/0.004762, allocations: 8 kB / 271 MB, free: 3.43 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.096e-05/0.004782, allocations: 12 kB / 271 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.014e-05/0.004813, allocations: 23.92 kB / 271 MB, free: 3.395 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.065e-05/0.004863, allocations: 39.91 kB / 271 MB, free: 3.355 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.005064, allocations: 107.5 kB / 271.1 MB, free: 3.25 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.005066, allocations: 0 / 271.1 MB, free: 3.25 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.005067, allocations: 0 / 271.1 MB, free: 3.25 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.005073, allocations: 0 / 271.1 MB, free: 3.25 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005344/0.005608, allocations: 452.1 kB / 271.6 MB, free: 2.773 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.005649, allocations: 8.922 kB / 271.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.395e-05/0.005712, allocations: 24.84 kB / 271.6 MB, free: 2.742 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.005898, allocations: 164.3 kB / 271.8 MB, free: 2.555 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.00591, allocations: 8.375 kB / 271.8 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.874e-05/0.005939, allocations: 12.38 kB / 271.8 MB, free: 2.535 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003334/0.006273, allocations: 220.8 kB / 272 MB, free: 2.285 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.006285, allocations: 8.172 kB / 272 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.006299, allocations: 4.375 kB / 272 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.006307, allocations: 7.938 kB / 272 MB, free: 2.266 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.133e-05/0.006379, allocations: 43.91 kB / 272.1 MB, free: 2.223 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007449/0.007123, allocations: 0.629 MB / 272.7 MB, free: 1.539 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002736/0.007397, allocations: 141.4 kB / 272.8 MB, free: 1.363 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.206e-05/0.007459, allocations: 47.14 kB / 272.9 MB, free: 1.305 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.007483, allocations: 7.938 kB / 272.9 MB, free: 1.297 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.00751, allocations: 45.38 kB / 272.9 MB, free: 1.242 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.904e-06/0.007512, allocations: 0 / 272.9 MB, free: 1.242 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002452/0.007757, allocations: 121.5 kB / 273.1 MB, free: 1.117 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.812e-05/0.007826, allocations: 114.9 kB / 273.2 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.007927, allocations: 197.8 kB / 273.4 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.22e-05/0.007939, allocations: 25.7 kB / 273.4 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.18e-05/0.008001, allocations: 162.7 kB / 273.6 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.623e-05/0.008097, allocations: 27.83 kB / 273.6 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/0.008135, allocations: 27.38 kB / 273.6 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.008261, allocations: 0.4961 MB / 274.1 MB, free: 4 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.949e-05/0.0083, allocations: 8.047 kB / 274.1 MB, free: 15.99 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.031e-05/0.00836, allocations: 93.44 kB / 274.2 MB, free: 15.87 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.551e-05/0.008456, allocations: 109.7 kB / 274.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.008459, allocations: 0 / 274.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000125/0.008584, allocations: 105.6 kB / 274.4 MB, free: 15.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.0086, allocations: 15 kB / 274.4 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.371e-06/0.008605, allocations: 3.938 kB / 274.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.008621, allocations: 4 kB / 274.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.777e-05/0.008699, allocations: 23.98 kB / 274.5 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.008708, allocations: 4 kB / 274.5 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.272e-05/0.008751, allocations: 19.83 kB / 274.5 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.854e-06/0.008758, allocations: 4 kB / 274.5 MB, free: 15.55 MB / 266.7 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 9.237e-05/0.008851, allocations: 168.5 kB / 274.6 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.008993, allocations: 93.47 kB / 274.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.106e-05/0.009024, allocations: 24.77 kB / 274.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.009026, allocations: 0 / 274.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.009032, allocations: 4 kB / 274.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.009037, allocations: 0 / 274.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.009205, allocations: 148.5 kB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.009207, allocations: 0 / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.009323, allocations: 43.97 kB / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.009326, allocations: 0 / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.009344, allocations: 4 kB / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.009348, allocations: 3.938 kB / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.009349, allocations: 4 kB / 275 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004284/0.009777, allocations: 422.1 kB / 275.4 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.464e-05/0.009792, allocations: 11.89 kB / 275.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.009809, allocations: 4 kB / 275.4 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.293e-05/0.009872, allocations: 7.984 kB / 275.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.808e-05/0.00991, allocations: 4 kB / 275.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.361e-06/0.009917, allocations: 7.938 kB / 275.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.885e-05/0.009966, allocations: 146.4 kB / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009966, allocations: 0 / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001986/0.01016, allocations: 31.89 kB / 275.6 MB, free: 14.37 MB / 266.7 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 7.168e-05/0.01024, allocations: 111.3 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.01037, allocations: 63.47 kB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.01037, allocations: 8 kB / 275.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.399e-05/0.01039, allocations: 19.67 kB / 275.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.01074, allocations: 51.03 kB / 275.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007427/0.01148, allocations: 379.2 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.875e-05/0.01153, allocations: 71.34 kB / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.034e-05/0.01156, allocations: 12.91 kB / 276.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.395e-05/0.01159, allocations: 16.44 kB / 276.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.01159, allocations: 4 kB / 276.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of Templates: time 0.003185/0.01478, allocations: 1.405 MB / 277.7 MB, free: 12.22 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.981113232206553]