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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 101.9 kB / 20.48 MB, free: 1.383 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 214.8 kB / 23.77 MB, free: 4.551 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.473/1.473, allocations: 207.7 MB / 234.6 MB, free: 9.801 MB / 190.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.2237/0.2237, allocations: 44.27 MB / 331.1 MB, free: 9.328 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002341/0.002341, allocations: 71.89 kB / 468.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1262, allocations: 61.05 MB / 0.5169 GB, free: 7.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004333/0.1305, allocations: 2.515 MB / 0.5194 GB, free: 4.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.1326, allocations: 0.9395 MB / 0.5203 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001862/0.1328, allocations: 11.88 kB / 0.5203 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001799/0.133, allocations: 51.52 kB / 0.5203 GB, free: 3.684 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.1332, allocations: 103.1 kB / 0.5204 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.1336, allocations: 139.6 kB / 0.5206 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000427/0.1341, allocations: 374.2 kB / 0.5209 GB, free: 3.078 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001763/0.1342, allocations: 69.55 kB / 0.521 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.1344, allocations: 147.5 kB / 0.5211 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.1346, allocations: 143.3 kB / 0.5213 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.171e-05/0.1346, allocations: 24 kB / 0.5213 GB, free: 2.699 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.1348, allocations: 47.97 kB / 0.5213 GB, free: 2.652 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.937e-05/0.1348, allocations: 55.78 kB / 0.5214 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.135, allocations: 143.4 kB / 0.5215 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005103/0.1355, allocations: 366.5 kB / 0.5219 GB, free: 2.098 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1355, allocations: 0 / 0.5219 GB, free: 2.098 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1355, allocations: 3.938 kB / 0.5219 GB, free: 2.094 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.665e-06/0.1355, allocations: 0 / 0.5219 GB, free: 2.094 MB / 398.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.0009569/0.1365, allocations: 0.5287 MB / 0.5224 GB, free: 1.535 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1365, allocations: 8.031 kB / 0.5224 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.43e-05/0.1365, allocations: 8.844 kB / 0.5224 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.641e-05/0.1366, allocations: 66.73 kB / 0.5225 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002141/0.1368, allocations: 60.61 kB / 0.5225 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003723/0.1372, allocations: 206.1 kB / 0.5227 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.1372, allocations: 21.03 kB / 0.5227 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.039e-05/0.1373, allocations: 36.33 kB / 0.5228 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004999/0.1378, allocations: 306.2 kB / 0.5231 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.466e-05/0.1378, allocations: 7.953 kB / 0.5231 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.255e-05/0.1378, allocations: 19.98 kB / 0.5231 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.1378, allocations: 8 kB / 0.5231 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003204/0.1381, allocations: 171.8 kB / 0.5233 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.1401, allocations: 1.215 MB / 0.5245 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004476/0.1405, allocations: 241 kB / 0.5247 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.1407, allocations: 72.33 kB / 0.5248 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.367e-05/0.1407, allocations: 7.984 kB / 0.5248 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.1407, allocations: 42.5 kB / 0.5248 GB, free: 14.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 1.643e-06/0.1407, allocations: 0 / 0.5248 GB, free: 14.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005258/0.1412, allocations: 222 kB / 0.525 GB, free: 14.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.1414, allocations: 162.2 kB / 0.5252 GB, free: 14.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.1416, allocations: 212.1 kB / 0.5254 GB, free: 14.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.1416, allocations: 29.7 kB / 0.5254 GB, free: 14.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.1418, allocations: 196.3 kB / 0.5256 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.05e-05/0.1418, allocations: 95.2 kB / 0.5257 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.1419, allocations: 65.64 kB / 0.5257 GB, free: 13.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.1421, allocations: 338.8 kB / 0.5261 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.1422, allocations: 67.91 kB / 0.5261 GB, free: 13.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002366/0.1425, allocations: 205.9 kB / 0.5263 GB, free: 13.14 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.1429, allocations: 297.7 kB / 0.5266 GB, free: 12.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.1429, allocations: 4 kB / 0.5266 GB, free: 12.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005103/0.1434, allocations: 313.4 kB / 0.5269 GB, free: 12.47 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.1434, allocations: 4 kB / 0.5269 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.1434, allocations: 8 kB / 0.5269 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.33e-05/0.1435, allocations: 4 kB / 0.5269 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/0.1438, allocations: 91.83 kB / 0.527 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.1438, allocations: 8 kB / 0.527 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/0.144, allocations: 43.67 kB / 0.5271 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.589e-05/0.144, allocations: 12 kB / 0.5271 GB, free: 12.3 MB / 414.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.0001746/0.1442, allocations: 153.7 kB / 0.5272 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.1443, allocations: 28.02 kB / 0.5273 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001928/0.1445, allocations: 91 kB / 0.5273 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.1445, allocations: 4 kB / 0.5273 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.1445, allocations: 0 / 0.5273 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1445, allocations: 4 kB / 0.5273 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006189/0.1451, allocations: 268.5 kB / 0.5276 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.1451, allocations: 0 / 0.5276 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003449/0.1455, allocations: 63.97 kB / 0.5277 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.1455, allocations: 4 kB / 0.5277 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.1455, allocations: 8.344 kB / 0.5277 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.121e-06/0.1455, allocations: 15.86 kB / 0.5277 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.1455, allocations: 8 kB / 0.5277 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006337/0.1461, allocations: 0.6219 MB / 0.5283 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.146e-05/0.1462, allocations: 31.78 kB / 0.5283 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.1462, allocations: 4 kB / 0.5283 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.1465, allocations: 8 kB / 0.5283 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.1465, allocations: 23.91 kB / 0.5284 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.1465, allocations: 7.938 kB / 0.5284 GB, free: 10.89 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001441/0.1467, allocations: 149.7 kB / 0.5285 GB, free: 10.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1467, allocations: 3.938 kB / 0.5285 GB, free: 10.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005533/0.1472, allocations: 79.89 kB / 0.5286 GB, free: 10.67 MB / 414.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.0009036/0.1481, allocations: 1.175 MB / 0.5297 GB, free: 9.461 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003291/0.1485, allocations: 175.7 kB / 0.5299 GB, free: 9.289 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.1485, allocations: 5.062 kB / 0.5299 GB, free: 9.285 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.1486, allocations: 67.84 kB / 0.53 GB, free: 9.219 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007976/0.1494, allocations: 73.78 kB / 0.5301 GB, free: 9.145 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004465/0.1539, allocations: 3.557 MB / 0.5335 GB, free: 5.371 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000191/0.154, allocations: 165.1 kB / 0.5337 GB, free: 5.191 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001291/0.1542, allocations: 30.95 kB / 0.5337 GB, free: 5.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.1543, allocations: 87.41 kB / 0.5338 GB, free: 5.074 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1543, allocations: 0 / 0.5338 GB, free: 5.074 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.233/0.3873, allocations: 5.826 MB / 0.5395 GB, free: 28.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.29, allocations: 17.11 kB / 0.5395 GB, free: 28.37 MB / 414.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 15.602290607988834]