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.005066/0.005066, allocations: 99.86 kB / 15.87 MB, free: 6.309 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.001099/0.001099, allocations: 194.2 kB / 16.78 MB, free: 6.238 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.318/1.318, allocations: 205.1 MB / 222.7 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3177/0.3177, allocations: 43.49 MB / 313.5 MB, free: 8.48 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.001299/0.001299, allocations: 66.55 kB / 382.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1098, allocations: 57.78 MB / 439.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003493/0.1134, allocations: 2.74 MB / 442.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.1148, allocations: 0.9824 MB / 443.6 MB, free: 11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.115, allocations: 7.938 kB / 443.6 MB, free: 10.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001464/0.1151, allocations: 43.64 kB / 443.7 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001615/0.1153, allocations: 87.22 kB / 443.8 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003504/0.1157, allocations: 119.8 kB / 443.9 MB, free: 10.74 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003234/0.116, allocations: 374 kB / 444.2 MB, free: 10.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.1162, allocations: 73.67 kB / 444.3 MB, free: 10.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.1163, allocations: 119.5 kB / 444.4 MB, free: 10.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001659/0.1165, allocations: 139.3 kB / 444.6 MB, free: 10.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.29e-05/0.1165, allocations: 19.94 kB / 444.6 MB, free: 10.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.1166, allocations: 39.98 kB / 444.6 MB, free: 9.992 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.916e-05/0.1167, allocations: 55.75 kB / 444.7 MB, free: 9.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.1168, allocations: 151.2 kB / 444.8 MB, free: 9.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003159/0.1171, allocations: 347 kB / 445.2 MB, free: 9.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1171, allocations: 0 / 445.2 MB, free: 9.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1171, allocations: 0 / 445.2 MB, free: 9.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1171, allocations: 0 / 445.2 MB, free: 9.449 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.0008285/0.118, allocations: 0.6004 MB / 445.8 MB, free: 8.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.118, allocations: 8.031 kB / 445.8 MB, free: 8.793 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.286e-05/0.1181, allocations: 62.72 kB / 445.8 MB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.1183, allocations: 48.55 kB / 445.9 MB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.1186, allocations: 271.6 kB / 446.2 MB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.1186, allocations: 21.03 kB / 446.2 MB, free: 8.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.181e-05/0.1187, allocations: 36.38 kB / 446.2 MB, free: 8.316 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004203/0.1191, allocations: 306.5 kB / 446.5 MB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.1191, allocations: 3.906 kB / 446.5 MB, free: 7.992 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.695e-05/0.1191, allocations: 16 kB / 446.5 MB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1192, allocations: 8 kB / 446.5 MB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002899/0.1195, allocations: 191.7 kB / 446.7 MB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.1211, allocations: 1.337 MB / 448.1 MB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003658/0.1215, allocations: 253 kB / 448.3 MB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.858e-05/0.1216, allocations: 76.31 kB / 448.4 MB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.1216, allocations: 0 / 448.4 MB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.1216, allocations: 46.5 kB / 448.4 MB, free: 5.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=22): time 1.242e-06/0.1216, allocations: 0 / 448.4 MB, free: 5.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004364/0.1221, allocations: 213.3 kB / 448.6 MB, free: 5.691 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/0.1222, allocations: 158.2 kB / 448.8 MB, free: 5.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.1223, allocations: 216 kB / 449 MB, free: 5.273 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.1224, allocations: 29.7 kB / 449 MB, free: 5.238 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1225, allocations: 192.3 kB / 449.2 MB, free: 5.047 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.2e-05/0.1225, allocations: 94.64 kB / 449.3 MB, free: 4.953 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.599e-05/0.1226, allocations: 61.7 kB / 449.4 MB, free: 4.887 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.1227, allocations: 334.8 kB / 449.7 MB, free: 4.551 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.1228, allocations: 67.91 kB / 449.8 MB, free: 4.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.123, allocations: 205.9 kB / 450 MB, free: 4.219 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003038/0.1233, allocations: 297.7 kB / 450.3 MB, free: 3.863 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.1233, allocations: 4 kB / 450.3 MB, free: 3.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004178/0.1238, allocations: 313.3 kB / 450.6 MB, free: 3.547 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.1238, allocations: 12.03 kB / 450.6 MB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.1238, allocations: 8 kB / 450.6 MB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.1238, allocations: 4 kB / 450.6 MB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.1241, allocations: 87.89 kB / 450.7 MB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.1241, allocations: 11.94 kB / 450.7 MB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.1243, allocations: 35.59 kB / 450.7 MB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.1243, allocations: 16 kB / 450.7 MB, free: 3.375 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.0001174/0.1244, allocations: 157.6 kB / 450.9 MB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.1246, allocations: 23.81 kB / 450.9 MB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.1247, allocations: 87.02 kB / 451 MB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.1247, allocations: 4 kB / 451 MB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.1247, allocations: 4 kB / 451 MB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.1247, allocations: 0 / 451 MB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005232/0.1253, allocations: 321.3 kB / 451.3 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1253, allocations: 0 / 451.3 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003129/0.1256, allocations: 71.84 kB / 451.4 MB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.1256, allocations: 4 kB / 451.4 MB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.1256, allocations: 8 kB / 451.4 MB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1257, allocations: 4 kB / 451.4 MB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.1257, allocations: 4 kB / 451.4 MB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004765/0.1261, allocations: 0.6332 MB / 452 MB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.527e-05/0.1262, allocations: 101.1 kB / 452.1 MB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.1262, allocations: 11.94 kB / 452.2 MB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002589/0.1265, allocations: 15.98 kB / 452.2 MB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.315e-05/0.1266, allocations: 16.55 kB / 452.2 MB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.1266, allocations: 8 kB / 452.2 MB, free: 1.809 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001044/0.1267, allocations: 153.8 kB / 452.3 MB, free: 1.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1267, allocations: 0 / 452.3 MB, free: 1.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004748/0.1272, allocations: 79.84 kB / 452.4 MB, free: 1.582 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.0007825/0.128, allocations: 1.174 MB / 453.6 MB, free: 388 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003031/0.1283, allocations: 187.7 kB / 453.8 MB, free: 200 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1283, allocations: 0 / 453.8 MB, free: 200 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.919e-05/0.1284, allocations: 75.84 kB / 453.9 MB, free: 124 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00083/0.1292, allocations: 57.7 kB / 453.9 MB, free: 64 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1712/0.3005, allocations: 3.652 MB / 457.6 MB, free: 46.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001881/0.3007, allocations: 0.7732 MB / 458.3 MB, free: 45.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.3008, allocations: 30.91 kB / 458.4 MB, free: 45.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.3009, allocations: 89.58 kB / 458.5 MB, free: 45.45 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.301, allocations: 0 / 458.5 MB, free: 45.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01383/0.3148, allocations: 5.02 MB / 463.5 MB, free: 44.92 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001489/0.315, allocations: 197.8 kB / 463.7 MB, free: 44.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.177/2.492, allocations: 0 / 463.7 MB, free: 44.66 MB / 382.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 & /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 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches