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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 104 kB / 16.27 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 191 kB / 17.19 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2113/0.2113, allocations: 43.52 MB / 313.9 MB, free: 0.5312 MB / 254.1 MB 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.001481/0.001481, allocations: 64.75 kB / 382.8 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1041, allocations: 57.79 MB / 440.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003288/0.1075, allocations: 2.695 MB / 443.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.1087, allocations: 0.9784 MB / 444.3 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.1088, allocations: 11.94 kB / 444.3 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.109, allocations: 55.45 kB / 444.3 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001361/0.1091, allocations: 103.1 kB / 444.4 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003825/0.1095, allocations: 135.6 kB / 444.6 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002527/0.1098, allocations: 370.2 kB / 444.9 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.11, allocations: 105.3 kB / 445 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001301/0.1101, allocations: 135.4 kB / 445.2 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.1103, allocations: 143.3 kB / 445.3 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.432e-05/0.1103, allocations: 24 kB / 445.3 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.1104, allocations: 43.98 kB / 445.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.867e-05/0.1105, allocations: 63.75 kB / 445.4 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.1106, allocations: 159.2 kB / 445.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002767/0.1108, allocations: 354.8 kB / 445.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1109, allocations: 0 / 445.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1109, allocations: 4 kB / 446 MB, free: 1.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.1109, allocations: 0 / 446 MB, free: 1.441 MB / 318.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.0007047/0.1116, allocations: 0.6004 MB / 446.6 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.1116, allocations: 11.89 kB / 446.6 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.81e-05/0.1117, allocations: 66.72 kB / 446.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001934/0.1119, allocations: 48.55 kB / 446.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/0.1121, allocations: 275.6 kB / 446.9 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.1121, allocations: 21.03 kB / 447 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.905e-05/0.1122, allocations: 36.36 kB / 447 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003915/0.1126, allocations: 294.5 kB / 447.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.604e-05/0.1126, allocations: 11.84 kB / 447.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.729e-05/0.1127, allocations: 16 kB / 447.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.1127, allocations: 8 kB / 447.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003087/0.113, allocations: 171.8 kB / 447.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001869/0.1149, allocations: 1.344 MB / 448.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003999/0.1153, allocations: 249 kB / 449.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.1154, allocations: 76.28 kB / 449.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.1154, allocations: 7.938 kB / 449.2 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.1155, allocations: 38.5 kB / 449.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.1155, allocations: 4 kB / 449.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005376/0.116, allocations: 221.8 kB / 449.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.174e-05/0.1161, allocations: 166.2 kB / 449.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.1163, allocations: 204.2 kB / 449.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.1163, allocations: 33.7 kB / 449.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.1165, allocations: 192 kB / 450 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.628e-05/0.1165, allocations: 82.72 kB / 450.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.033e-05/0.1166, allocations: 61.7 kB / 450.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1167, allocations: 338.9 kB / 450.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.1169, allocations: 63.97 kB / 450.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.1171, allocations: 205.9 kB / 450.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003622/0.1174, allocations: 301.6 kB / 451 MB, free: 11.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1175, allocations: 0 / 451 MB, free: 11.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004847/0.1179, allocations: 316.9 kB / 451.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.118, allocations: 8 kB / 451.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.118, allocations: 11.97 kB / 451.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.118, allocations: 8 kB / 451.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.1183, allocations: 84.44 kB / 451.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.1183, allocations: 15.94 kB / 451.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001688/0.1185, allocations: 35.58 kB / 451.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.1185, allocations: 20 kB / 451.5 MB, free: 11.35 MB / 334.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.0001362/0.1187, allocations: 153.6 kB / 451.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.1188, allocations: 19.81 kB / 451.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001786/0.119, allocations: 91.02 kB / 451.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.119, allocations: 0 / 451.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.515e-06/0.119, allocations: 4.25 kB / 451.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.119, allocations: 4 kB / 451.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005842/0.1196, allocations: 325.3 kB / 452.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1196, allocations: 0 / 452.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003282/0.1199, allocations: 71.91 kB / 452.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.12, allocations: 0 / 452.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/0.12, allocations: 8 kB / 452.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.12, allocations: 4 kB / 452.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.12, allocations: 320 / 452.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005892/0.1206, allocations: 0.6392 MB / 452.8 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.16e-05/0.1207, allocations: 104.8 kB / 452.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.1207, allocations: 8 kB / 452.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002429/0.121, allocations: 4 kB / 452.9 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.121, allocations: 11.98 kB / 453 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.121, allocations: 16 kB / 453 MB, free: 9.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001235/0.1211, allocations: 153.8 kB / 453.1 MB, free: 9.656 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1211, allocations: 96 / 453.1 MB, free: 9.656 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005136/0.1217, allocations: 83.78 kB / 453.2 MB, free: 9.574 MB / 334.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.0007124/0.1224, allocations: 1.183 MB / 454.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003175/0.1227, allocations: 200.8 kB / 454.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1227, allocations: 0 / 454.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.1228, allocations: 75.97 kB / 454.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007766/0.1236, allocations: 60.98 kB / 454.7 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0038/0.1274, allocations: 3.527 MB / 458.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.1278, allocations: 0.7793 MB / 459 MB, free: 3.492 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.1279, allocations: 27.2 kB / 459 MB, free: 3.469 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.1281, allocations: 95.33 kB / 459.1 MB, free: 3.375 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1281, allocations: 3.938 kB / 459.1 MB, free: 3.371 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.1508, allocations: 5.244 MB / 464.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.709/7.86, allocations: 5.016 kB / 464.4 MB, free: 14.14 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking_res.csv","/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) Reference file matches