Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009722/0.0009722, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001206/0.001206, allocations: 160.9 kB / 24.91 MB, free: 8.719 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9606/0.9606, allocations: 177 MB / 205.2 MB, free: 5.043 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2619/0.2619, allocations: 34.86 MB / 296.6 MB, free: 472 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 325.9 MB, free: 7.184 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.919e-05/2.045e-05, allocations: 3.516 kB / 325.9 MB, free: 7.18 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002287/0.002307, allocations: 1.959 MB / 327.9 MB, free: 5.207 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009594/0.003267, allocations: 0.554 MB / 328.4 MB, free: 4.648 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.304e-05/0.00334, allocations: 4 kB / 328.4 MB, free: 4.645 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.003444, allocations: 31.66 kB / 328.4 MB, free: 4.613 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.617e-05/0.00352, allocations: 35.7 kB / 328.5 MB, free: 4.578 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001868/0.003707, allocations: 51.81 kB / 328.5 MB, free: 4.527 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001307/0.003838, allocations: 147.9 kB / 328.7 MB, free: 4.383 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.003943, allocations: 58.42 kB / 328.7 MB, free: 4.324 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.004085, allocations: 95.72 kB / 328.8 MB, free: 4.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.218e-05/0.004167, allocations: 51.81 kB / 328.9 MB, free: 4.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.004186, allocations: 12 kB / 328.9 MB, free: 4.168 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.363e-05/0.00423, allocations: 16 kB / 328.9 MB, free: 4.152 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.21e-05/0.004252, allocations: 31.89 kB / 328.9 MB, free: 4.121 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.604e-05/0.004288, allocations: 43.86 kB / 329 MB, free: 4.078 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.004436, allocations: 103.6 kB / 329.1 MB, free: 3.977 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.923e-06/0.004438, allocations: 0 / 329.1 MB, free: 3.977 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.004439, allocations: 0 / 329.1 MB, free: 3.977 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.004443, allocations: 4 kB / 329.1 MB, free: 3.973 MB / 298.7 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.0003322/0.004775, allocations: 346.4 kB / 329.4 MB, free: 3.613 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.004806, allocations: 8.031 kB / 329.4 MB, free: 3.605 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.841e-05/0.004905, allocations: 32.86 kB / 329.5 MB, free: 3.574 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.005039, allocations: 133.7 kB / 329.6 MB, free: 3.418 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.669e-06/0.005049, allocations: 8.375 kB / 329.6 MB, free: 3.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.005076, allocations: 16.38 kB / 329.6 MB, free: 3.395 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.005195, allocations: 110.8 kB / 329.7 MB, free: 3.277 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.005203, allocations: 4.188 kB / 329.7 MB, free: 3.273 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.005213, allocations: 8.125 kB / 329.7 MB, free: 3.266 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.005219, allocations: 7.984 kB / 329.7 MB, free: 3.258 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.284e-05/0.005262, allocations: 31.92 kB / 329.8 MB, free: 3.227 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003355/0.005597, allocations: 287.8 kB / 330.1 MB, free: 2.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.817e-05/0.005695, allocations: 78.47 kB / 330.1 MB, free: 2.844 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.482e-05/0.00573, allocations: 40.83 kB / 330.2 MB, free: 2.801 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.238e-05/0.005743, allocations: 0 / 330.2 MB, free: 2.801 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.792e-05/0.00576, allocations: 34.56 kB / 330.2 MB, free: 2.758 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.005762, allocations: 4 kB / 330.2 MB, free: 2.754 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.000871/0.006633, allocations: 0.547 MB / 330.8 MB, free: 2.152 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/0.006671, allocations: 55.41 kB / 330.8 MB, free: 2.086 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.491e-05/0.006756, allocations: 129 kB / 330.9 MB, free: 1.949 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.006771, allocations: 29.7 kB / 331 MB, free: 1.914 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.552e-05/0.006827, allocations: 112.5 kB / 331.1 MB, free: 1.801 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.621e-05/0.006863, allocations: 75.3 kB / 331.1 MB, free: 1.727 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.879e-05/0.006902, allocations: 37.69 kB / 331.2 MB, free: 1.684 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.386e-05/0.006986, allocations: 318.8 kB / 331.5 MB, free: 1.363 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.923e-05/0.007005, allocations: 12 kB / 331.5 MB, free: 1.352 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.039e-05/0.007045, allocations: 56.84 kB / 331.6 MB, free: 1.285 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.679e-05/0.007122, allocations: 80.36 kB / 331.6 MB, free: 1.195 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.007123, allocations: 0 / 331.6 MB, free: 1.195 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001506/0.007274, allocations: 139 kB / 331.8 MB, free: 1.051 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.007286, allocations: 4 kB / 331.8 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.00729, allocations: 0 / 331.8 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000102/0.007392, allocations: 36.81 kB / 331.8 MB, free: 1.008 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.347e-05/0.007486, allocations: 35.98 kB / 331.8 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007585/0.008244, allocations: 1.43 MB / 333.3 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.401e-05/0.008278, allocations: 8 kB / 333.3 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.274e-06/0.008286, allocations: 4 kB / 333.3 MB, free: 15.44 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 6.532e-05/0.008351, allocations: 125.8 kB / 333.4 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.172e-05/0.008373, allocations: 15.92 kB / 333.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.867e-05/0.008391, allocations: 24.81 kB / 333.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.008392, allocations: 0 / 333.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.008395, allocations: 4 kB / 333.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.008399, allocations: 3.984 kB / 333.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003254/0.008724, allocations: 343.1 kB / 333.8 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.008726, allocations: 0 / 333.8 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.285e-05/0.008809, allocations: 31.92 kB / 333.8 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.084e-05/0.00888, allocations: 32.88 kB / 333.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.008891, allocations: 0 / 333.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007976/0.009688, allocations: 1.226 MB / 335.1 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.009689, allocations: 0 / 335.1 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/0.00986, allocations: 241 kB / 335.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.215e-06/0.009869, allocations: 11.91 kB / 335.3 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.009882, allocations: 16.05 kB / 335.3 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.842e-05/0.00992, allocations: 0 / 335.3 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.12e-05/0.009951, allocations: 19.97 kB / 335.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.009957, allocations: 3.938 kB / 335.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.814e-05/0.009975, allocations: 24.83 kB / 335.4 MB, free: 13.19 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.009975, allocations: 0 / 335.4 MB, free: 13.19 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001702/0.01015, allocations: 40 kB / 335.4 MB, free: 13.15 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 7.374e-05/0.01022, allocations: 80.36 kB / 335.5 MB, free: 13.06 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002204/0.01044, allocations: 215.9 kB / 335.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.01044, allocations: 0 / 335.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.867e-05/0.01054, allocations: 175.3 kB / 335.9 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001646/0.01071, allocations: 20.86 kB / 335.9 MB, free: 12.63 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005798/0.01129, allocations: 372.1 kB / 336.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.102e-05/0.01133, allocations: 76.22 kB / 336.4 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.229e-05/0.01136, allocations: 13.48 kB / 336.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.622e-05/0.01141, allocations: 67.36 kB / 336.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01142, allocations: 0 / 336.4 MB, free: 12.05 MB / 314.7 MB Notification: Performance of Templates: time 0.003329/0.01474, allocations: 1.734 MB / 338.2 MB, free: 10.36 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.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.8555626501329243]