Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.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.001242/0.001242, allocations: 119.3 kB / 17.13 MB, free: 5.926 MB / 14.72 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.001331/0.001331, allocations: 191.7 kB / 20.07 MB, free: 2.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.591/1.591, allocations: 207.6 MB / 230.5 MB, free: 4 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.342/0.342, allocations: 44.23 MB / 326.5 MB, free: 6.812 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002916/0.002916, allocations: 75.89 kB / 462.2 MB, free: 0.9453 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3149, allocations: 60.98 MB / 0.5109 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003874/0.3188, allocations: 2.723 MB / 0.5135 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00157/0.3204, allocations: 0.9925 MB / 0.5145 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.3205, allocations: 4.375 kB / 0.5145 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.3207, allocations: 57.45 kB / 0.5146 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.3209, allocations: 103.2 kB / 0.5147 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.3213, allocations: 148.5 kB / 0.5148 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003498/0.3216, allocations: 372.3 kB / 0.5152 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.3218, allocations: 68.81 kB / 0.5152 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.322, allocations: 136.5 kB / 0.5154 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/0.3221, allocations: 143.5 kB / 0.5155 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.668e-05/0.3222, allocations: 24.75 kB / 0.5155 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.3223, allocations: 43.73 kB / 0.5156 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.129e-05/0.3224, allocations: 65.38 kB / 0.5156 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001477/0.3225, allocations: 157 kB / 0.5158 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004256/0.3229, allocations: 363 kB / 0.5161 GB, free: 9.324 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3229, allocations: 1.281 kB / 0.5161 GB, free: 9.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3229, allocations: 0 / 0.5161 GB, free: 9.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.323, allocations: 0 / 0.5161 GB, free: 9.324 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001034/0.324, allocations: 0.61 MB / 0.5167 GB, free: 8.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.324, allocations: 14.08 kB / 0.5167 GB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.065e-05/0.3241, allocations: 71.25 kB / 0.5168 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002762/0.3244, allocations: 52.69 kB / 0.5168 GB, free: 8.672 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004217/0.3248, allocations: 275.3 kB / 0.5171 GB, free: 8.395 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.3248, allocations: 25.5 kB / 0.5171 GB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.158e-05/0.3249, allocations: 31.7 kB / 0.5172 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005017/0.3254, allocations: 306.4 kB / 0.5175 GB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.3254, allocations: 6.703 kB / 0.5175 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.577e-05/0.3255, allocations: 14.75 kB / 0.5175 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.3255, allocations: 8.031 kB / 0.5175 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003238/0.3258, allocations: 181.3 kB / 0.5177 GB, free: 8.055 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.3274, allocations: 1.324 MB / 0.5189 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003575/0.3278, allocations: 249 kB / 0.5192 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.461e-05/0.3279, allocations: 76.25 kB / 0.5193 GB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.3279, allocations: 4 kB / 0.5193 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.3279, allocations: 47.05 kB / 0.5193 GB, free: 6.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.473e-06/0.3279, allocations: 0 / 0.5193 GB, free: 6.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004411/0.3283, allocations: 213.4 kB / 0.5195 GB, free: 5.992 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.3284, allocations: 158.2 kB / 0.5197 GB, free: 5.801 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.3285, allocations: 220.1 kB / 0.5199 GB, free: 5.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.3286, allocations: 29.7 kB / 0.5199 GB, free: 5.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.173e-05/0.3286, allocations: 196.6 kB / 0.5201 GB, free: 5.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.312e-05/0.3287, allocations: 95.22 kB / 0.5202 GB, free: 5.246 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.146e-05/0.3287, allocations: 69.64 kB / 0.5202 GB, free: 5.172 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.602e-05/0.3288, allocations: 330.8 kB / 0.5206 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.627e-05/0.3289, allocations: 67.97 kB / 0.5206 GB, free: 4.773 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.329, allocations: 205.8 kB / 0.5208 GB, free: 4.508 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002604/0.3293, allocations: 293.8 kB / 0.5211 GB, free: 4.156 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3293, allocations: 0 / 0.5211 GB, free: 4.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000372/0.3297, allocations: 321.3 kB / 0.5214 GB, free: 3.836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.3297, allocations: 12.09 kB / 0.5214 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.3297, allocations: 4 kB / 0.5214 GB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.3297, allocations: 8 kB / 0.5214 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.33, allocations: 88.59 kB / 0.5215 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.33, allocations: 11.98 kB / 0.5215 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.3302, allocations: 35.73 kB / 0.5216 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.3302, allocations: 20 kB / 0.5216 GB, free: 3.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.000123/0.3303, allocations: 149.7 kB / 0.5217 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3304, allocations: 27.8 kB / 0.5217 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001477/0.3305, allocations: 87.08 kB / 0.5218 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.3305, allocations: 4 kB / 0.5218 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.3306, allocations: 11.97 kB / 0.5218 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.3306, allocations: 0 / 0.5218 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004871/0.331, allocations: 317.3 kB / 0.5221 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3311, allocations: 0 / 0.5221 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003188/0.3314, allocations: 67.91 kB / 0.5222 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3314, allocations: 4 kB / 0.5222 GB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.3314, allocations: 7.984 kB / 0.5222 GB, free: 2.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3314, allocations: 0 / 0.5222 GB, free: 2.934 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3314, allocations: 8 kB / 0.5222 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004448/0.3318, allocations: 0.6335 MB / 0.5228 GB, free: 2.273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.562e-05/0.3319, allocations: 100.9 kB / 0.5229 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/0.3319, allocations: 8 kB / 0.523 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002391/0.3322, allocations: 8 kB / 0.523 GB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.177e-05/0.3322, allocations: 15.97 kB / 0.523 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.3322, allocations: 12 kB / 0.523 GB, free: 2.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001006/0.3323, allocations: 145.8 kB / 0.5231 GB, free: 1.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3323, allocations: 0 / 0.5231 GB, free: 1.973 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005072/0.3328, allocations: 83.89 kB / 0.5232 GB, free: 1.891 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (23): * Single equations (assignments): 23 * 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.0005979/0.3334, allocations: 1.181 MB / 0.5244 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002943/0.3337, allocations: 180.1 kB / 0.5245 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3337, allocations: 4 kB / 0.5245 GB, free: 0.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.369e-05/0.3338, allocations: 72.5 kB / 0.5246 GB, free: 440 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008094/0.3346, allocations: 61.66 kB / 0.5247 GB, free: 376 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004758/0.3394, allocations: 3.555 MB / 0.5281 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005565/0.3399, allocations: 0.7677 MB / 0.5289 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.3401, allocations: 30.97 kB / 0.5289 GB, free: 11.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.3402, allocations: 87.41 kB / 0.529 GB, free: 11.68 MB / 398.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3402, allocations: 0 / 0.529 GB, free: 11.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03048/0.3707, allocations: 5.421 MB / 0.5343 GB, free: 6.266 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.542/8.913, allocations: 16.47 kB / 0.5343 GB, free: 6.25 MB / 398.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.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: 12.020418493077159]