Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.0008809/0.0008809, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008444/0.0008444, allocations: 143 kB / 24.89 MB, free: 8.781 MB / 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.8933/0.8933, allocations: 173.4 MB / 201.5 MB, free: 8.734 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 268.4 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.431e-05/2.574e-05, allocations: 2.312 kB / 268.4 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.003107/0.003133, allocations: 1.912 MB / 270.4 MB, free: 4.117 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007796/0.003913, allocations: 462.7 kB / 270.8 MB, free: 3.66 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.622e-05/0.003999, allocations: 7.938 kB / 270.8 MB, free: 3.652 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001065/0.004105, allocations: 11.88 kB / 270.8 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.404e-05/0.004179, allocations: 23.78 kB / 270.8 MB, free: 3.617 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000147/0.004326, allocations: 27.95 kB / 270.9 MB, free: 3.59 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001588/0.004485, allocations: 107.5 kB / 271 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.004597, allocations: 30.22 kB / 271 MB, free: 3.449 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001832/0.004781, allocations: 63.83 kB / 271.1 MB, free: 3.387 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.414e-05/0.004855, allocations: 35.88 kB / 271.1 MB, free: 3.352 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.004881, allocations: 8 kB / 271.1 MB, free: 3.344 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.749e-05/0.004898, allocations: 8 kB / 271.1 MB, free: 3.336 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.386e-05/0.004922, allocations: 19.94 kB / 271.1 MB, free: 3.316 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.876e-05/0.004961, allocations: 31.91 kB / 271.2 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.005101, allocations: 71.73 kB / 271.2 MB, free: 3.215 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.005103, allocations: 0 / 271.2 MB, free: 3.215 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.005104, allocations: 0 / 271.2 MB, free: 3.215 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.005108, allocations: 4 kB / 271.2 MB, free: 3.211 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.000384/0.005492, allocations: 300.7 kB / 271.5 MB, free: 2.895 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.005525, allocations: 12.92 kB / 271.6 MB, free: 2.883 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.005561, allocations: 16.88 kB / 271.6 MB, free: 2.867 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.005716, allocations: 129.7 kB / 271.7 MB, free: 2.715 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.005729, allocations: 8.562 kB / 271.7 MB, free: 2.707 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.99e-05/0.005759, allocations: 12.38 kB / 271.7 MB, free: 2.695 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001595/0.005918, allocations: 116.7 kB / 271.8 MB, free: 2.566 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.005929, allocations: 0 / 271.8 MB, free: 2.566 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.005938, allocations: 4 kB / 271.8 MB, free: 2.562 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.005946, allocations: 4 kB / 271.8 MB, free: 2.559 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.721e-05/0.005993, allocations: 19.98 kB / 271.9 MB, free: 2.539 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004437/0.006437, allocations: 380.9 kB / 272.2 MB, free: 2.137 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.273e-05/0.00653, allocations: 58.47 kB / 272.3 MB, free: 2.07 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.612e-05/0.006556, allocations: 16.84 kB / 272.3 MB, free: 2.051 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-06/0.006564, allocations: 0 / 272.3 MB, free: 2.051 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.006589, allocations: 38.5 kB / 272.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 8.62e-07/0.006589, allocations: 0 / 272.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001314/0.006721, allocations: 53.69 kB / 272.4 MB, free: 1.945 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.006751, allocations: 59.39 kB / 272.5 MB, free: 1.875 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.685e-05/0.006828, allocations: 122.8 kB / 272.6 MB, free: 1.742 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.00684, allocations: 29.64 kB / 272.6 MB, free: 1.707 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.07e-05/0.006891, allocations: 120.1 kB / 272.7 MB, free: 1.586 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.22e-05/0.006913, allocations: 31.73 kB / 272.8 MB, free: 1.555 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.006953, allocations: 25.7 kB / 272.8 MB, free: 1.523 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.007162, allocations: 318.8 kB / 273.1 MB, free: 1.203 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.857e-05/0.007181, allocations: 8 kB / 273.1 MB, free: 1.195 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.005e-05/0.007221, allocations: 47.89 kB / 273.1 MB, free: 1.137 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.916e-05/0.00729, allocations: 64.14 kB / 273.2 MB, free: 1.059 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.007293, allocations: 8 kB / 273.2 MB, free: 1.051 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001039/0.007397, allocations: 73.55 kB / 273.3 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.00741, allocations: 10.91 kB / 273.3 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.007415, allocations: 4 kB / 273.3 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.007429, allocations: 4 kB / 273.3 MB, free: 0.957 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.007548, allocations: 35.92 kB / 273.3 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.007552, allocations: 3.984 kB / 273.3 MB, free: 0.918 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.495e-05/0.007597, allocations: 11.89 kB / 273.4 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.007605, allocations: 8.125 kB / 273.4 MB, free: 0.8984 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 6.189e-05/0.007667, allocations: 117.8 kB / 273.5 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.464e-05/0.007691, allocations: 7.938 kB / 273.5 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.554e-05/0.007717, allocations: 16.36 kB / 273.5 MB, free: 0.75 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.007719, allocations: 4 kB / 273.5 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.007721, allocations: 0 / 273.5 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.007723, allocations: 0 / 273.5 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.007841, allocations: 85.88 kB / 273.6 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.007843, allocations: 0 / 273.6 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.713e-05/0.00793, allocations: 23.92 kB / 273.6 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.007932, allocations: 4 kB / 273.6 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.007942, allocations: 0 / 273.6 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.007945, allocations: 3.938 kB / 273.6 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.007946, allocations: 0 / 273.6 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001529/0.008099, allocations: 171.4 kB / 273.8 MB, free: 440 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.449e-05/0.008113, allocations: 11.89 kB / 273.8 MB, free: 428 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.008127, allocations: 0 / 273.8 MB, free: 428 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.039e-05/0.008187, allocations: 11.94 kB / 273.8 MB, free: 416 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.854e-05/0.008216, allocations: 3.984 kB / 273.8 MB, free: 412 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.00822, allocations: 0 / 273.8 MB, free: 412 kB / 250.7 MB Notification: Performance of sorting global known variables: time 2.644e-05/0.008246, allocations: 24.83 kB / 273.8 MB, free: 384 kB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008246, allocations: 4 kB / 273.8 MB, free: 380 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002213/0.008467, allocations: 23.95 kB / 273.9 MB, free: 356 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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 8.921e-05/0.008557, allocations: 76.42 kB / 273.9 MB, free: 272 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.962e-05/0.008646, allocations: 44.78 kB / 274 MB, free: 224 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.00865, allocations: 0 / 274 MB, free: 224 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.106e-05/0.008681, allocations: 25.17 kB / 274 MB, free: 196 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.008903, allocations: 20.38 kB / 274 MB, free: 176 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006649/0.009568, allocations: 312.2 kB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.366e-05/0.009612, allocations: 67.33 kB / 274.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.517e-05/0.009647, allocations: 4.5 kB / 274.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.074e-05/0.009718, allocations: 67.36 kB / 274.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.009718, allocations: 0 / 274.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of Templates: time 0.003291/0.01301, allocations: 1.069 MB / 275.5 MB, free: 14.63 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.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.6496959081850946]