Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001447, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001017/0.001017, allocations: 113.3 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3865/0.3865, allocations: 44.84 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 59.91 kB / 465.5 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.3318, allocations: 62.03 MB / 0.5151 GB, free: 37.82 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004725/0.3366, allocations: 2.662 MB / 0.5177 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001743/0.3384, allocations: 0.6833 MB / 0.5184 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.3386, allocations: 9.719 kB / 0.5184 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002233/0.3389, allocations: 32.42 kB / 0.5185 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002182/0.3392, allocations: 74.73 kB / 0.5185 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003738/0.3396, allocations: 73.48 kB / 0.5186 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005113/0.3401, allocations: 325.6 kB / 0.5189 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002769/0.3404, allocations: 72.05 kB / 0.519 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.3407, allocations: 118.2 kB / 0.5191 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00022/0.341, allocations: 127.3 kB / 0.5192 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.618e-05/0.341, allocations: 16.72 kB / 0.5192 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.438e-05/0.3411, allocations: 17.84 kB / 0.5192 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.272e-05/0.3412, allocations: 56.47 kB / 0.5193 GB, free: 34.98 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.3413, allocations: 130.8 kB / 0.5194 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.3416, allocations: 291 kB / 0.5197 GB, free: 34.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3416, allocations: 0 / 0.5197 GB, free: 34.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.3416, allocations: 0 / 0.5197 GB, free: 34.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.3416, allocations: 2.969 kB / 0.5197 GB, free: 34.79 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008694/0.3425, allocations: 0.5874 MB / 0.5203 GB, free: 34.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.3426, allocations: 11.47 kB / 0.5203 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002364/0.3428, allocations: 49.45 kB / 0.5203 GB, free: 34.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.3431, allocations: 264 kB / 0.5206 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.3431, allocations: 17.38 kB / 0.5206 GB, free: 34.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.569e-05/0.3432, allocations: 26.41 kB / 0.5206 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004184/0.3436, allocations: 288 kB / 0.5209 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.3436, allocations: 3.906 kB / 0.5209 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.3436, allocations: 10.47 kB / 0.5209 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.3437, allocations: 8.344 kB / 0.5209 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003824/0.344, allocations: 192.8 kB / 0.5211 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.3454, allocations: 1.309 MB / 0.5224 GB, free: 32.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003416/0.3457, allocations: 251.4 kB / 0.5226 GB, free: 32.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.3459, allocations: 110.7 kB / 0.5227 GB, free: 32.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.3459, allocations: 3 kB / 0.5227 GB, free: 32.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.346, allocations: 41.44 kB / 0.5228 GB, free: 32.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.503e-06/0.346, allocations: 4 kB / 0.5228 GB, free: 32.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002201/0.3482, allocations: 1.554 MB / 0.5243 GB, free: 31.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.827e-05/0.3483, allocations: 138.5 kB / 0.5244 GB, free: 30.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.3485, allocations: 223.7 kB / 0.5246 GB, free: 30.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.3485, allocations: 32.64 kB / 0.5247 GB, free: 30.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.247e-05/0.3486, allocations: 171.2 kB / 0.5248 GB, free: 30.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.435e-05/0.3486, allocations: 122.4 kB / 0.525 GB, free: 30.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.409e-05/0.3487, allocations: 69.44 kB / 0.525 GB, free: 30.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.503e-05/0.3488, allocations: 338.4 kB / 0.5253 GB, free: 30.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002348/0.349, allocations: 98.36 kB / 0.5254 GB, free: 30.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002641/0.3493, allocations: 240.7 kB / 0.5257 GB, free: 29.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005141/0.3498, allocations: 373.8 kB / 0.526 GB, free: 29.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3498, allocations: 2.781 kB / 0.526 GB, free: 29.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006308/0.3505, allocations: 394 kB / 0.5264 GB, free: 29.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.3505, allocations: 5.5 kB / 0.5264 GB, free: 29.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.3505, allocations: 9.469 kB / 0.5264 GB, free: 29.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.3505, allocations: 5.719 kB / 0.5264 GB, free: 29.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003397/0.3509, allocations: 102.3 kB / 0.5265 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.3509, allocations: 14.91 kB / 0.5265 GB, free: 29.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001877/0.3511, allocations: 24.94 kB / 0.5266 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.3511, allocations: 21.53 kB / 0.5266 GB, free: 29.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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.0001008/0.3512, allocations: 143.5 kB / 0.5267 GB, free: 29.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.046e-05/0.3513, allocations: 30.06 kB / 0.5267 GB, free: 29.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.545e-05/0.3514, allocations: 38.25 kB / 0.5268 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.3514, allocations: 5.219 kB / 0.5268 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3514, allocations: 0 / 0.5268 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.3514, allocations: 2.844 kB / 0.5268 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.3527, allocations: 0.9871 MB / 0.5277 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3527, allocations: 0 / 0.5277 GB, free: 28.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003253/0.353, allocations: 85.16 kB / 0.5278 GB, free: 28.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.353, allocations: 2.719 kB / 0.5278 GB, free: 28.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.777e-05/0.3531, allocations: 18.05 kB / 0.5278 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.3531, allocations: 2.656 kB / 0.5279 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3531, allocations: 2.781 kB / 0.5279 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002221/0.3553, allocations: 2.167 MB / 0.53 GB, free: 26.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.061e-05/0.3554, allocations: 100.2 kB / 0.5301 GB, free: 26.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.119e-05/0.3554, allocations: 13.19 kB / 0.5301 GB, free: 26.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002631/0.3557, allocations: 15.94 kB / 0.5301 GB, free: 26.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.548e-05/0.3558, allocations: 25.56 kB / 0.5301 GB, free: 26.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.3558, allocations: 16.47 kB / 0.5301 GB, free: 26.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001036/0.3559, allocations: 161.8 kB / 0.5303 GB, free: 26.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3559, allocations: 0 / 0.5303 GB, free: 26.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005561/0.3565, allocations: 85.47 kB / 0.5304 GB, free: 26.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.000106/0.3566, allocations: 105 kB / 0.5305 GB, free: 26.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005816/0.3572, allocations: 271.4 kB / 0.5307 GB, free: 26.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3572, allocations: 0 / 0.5307 GB, free: 26.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002379/0.3574, allocations: 130 kB / 0.5309 GB, free: 26.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006875/0.3581, allocations: 43.36 kB / 0.5309 GB, free: 26.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.3595, allocations: 1.193 MB / 0.5321 GB, free: 25.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.3598, allocations: 0.7767 MB / 0.5328 GB, free: 24.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001487/0.36, allocations: 37.81 kB / 0.5329 GB, free: 24.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.406e-05/0.3601, allocations: 37.06 kB / 0.5329 GB, free: 24.77 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.3601, allocations: 0 / 0.5329 GB, free: 24.77 MB / 378.7 MB Notification: Performance of Templates: time 0.004948/0.365, allocations: 2.387 MB / 0.5352 GB, free: 24.6 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches