Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_0_0_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.001054/0.001054, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001113/0.001113, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 222.9 MB / 242.2 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1958/0.1958, allocations: 44.19 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 69.3 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1089, allocations: 60.82 MB / 469.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003907/0.1129, allocations: 2.699 MB / 472 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.1143, allocations: 0.9541 MB / 473 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.1144, allocations: 7.938 kB / 473 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001652/0.1146, allocations: 55.45 kB / 473.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.1148, allocations: 91.11 kB / 473.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004474/0.1153, allocations: 147.6 kB / 473.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003351/0.1156, allocations: 370.3 kB / 473.7 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.1158, allocations: 97.05 kB / 473.7 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.1159, allocations: 127.5 kB / 473.9 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.1161, allocations: 147.3 kB / 474 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.99e-05/0.1162, allocations: 24 kB / 474 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.1163, allocations: 43.98 kB / 474.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.042e-05/0.1164, allocations: 63.77 kB / 474.1 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.1165, allocations: 163.2 kB / 474.3 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003572/0.1169, allocations: 363 kB / 474.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1169, allocations: 0 / 474.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1169, allocations: 0 / 474.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.1169, allocations: 0 / 474.7 MB, free: 8.941 MB / 350.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.0008734/0.1178, allocations: 0.5926 MB / 475.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.1178, allocations: 12.03 kB / 475.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.696e-05/0.1179, allocations: 66.72 kB / 475.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002231/0.1182, allocations: 52.45 kB / 475.4 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002975/0.1185, allocations: 263.7 kB / 475.6 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.1185, allocations: 25.03 kB / 475.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.631e-05/0.1186, allocations: 36.28 kB / 475.7 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004344/0.119, allocations: 306.5 kB / 476 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.119, allocations: 11.83 kB / 476 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.1191, allocations: 12 kB / 476 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.1191, allocations: 8 kB / 476 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002811/0.1194, allocations: 171.8 kB / 476.2 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.121, allocations: 1.329 MB / 477.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003764/0.1214, allocations: 253 kB / 477.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.1215, allocations: 76.33 kB / 477.8 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.1216, allocations: 3.938 kB / 477.9 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.1216, allocations: 46.55 kB / 477.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.493e-06/0.1216, allocations: 0 / 477.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004591/0.1221, allocations: 209.9 kB / 478.1 MB, free: 5.203 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.516e-05/0.1222, allocations: 166.1 kB / 478.3 MB, free: 5.004 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.1223, allocations: 216.1 kB / 478.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.213e-05/0.1224, allocations: 29.7 kB / 478.5 MB, free: 4.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.928e-05/0.1225, allocations: 188.1 kB / 478.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.411e-05/0.1225, allocations: 94.75 kB / 478.8 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.928e-05/0.1226, allocations: 73.55 kB / 478.9 MB, free: 4.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1227, allocations: 330.8 kB / 479.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.1229, allocations: 67.98 kB / 479.2 MB, free: 3.988 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.123, allocations: 209.8 kB / 479.4 MB, free: 3.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/0.1234, allocations: 285.8 kB / 479.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1234, allocations: 8 kB / 479.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004194/0.1238, allocations: 316.8 kB / 480 MB, free: 3.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.1238, allocations: 4.531 kB / 480 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1238, allocations: 12 kB / 480.1 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.1239, allocations: 4 kB / 480.1 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002825/0.1241, allocations: 87.91 kB / 480.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.1242, allocations: 16.05 kB / 480.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.1243, allocations: 35.73 kB / 480.2 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.1244, allocations: 19.98 kB / 480.2 MB, free: 2.875 MB / 350.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.0001205/0.1245, allocations: 153.7 kB / 480.4 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.1246, allocations: 23.72 kB / 480.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001554/0.1248, allocations: 91.02 kB / 480.5 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1248, allocations: 4 kB / 480.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1248, allocations: 0 / 480.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.1248, allocations: 7.984 kB / 480.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005439/0.1254, allocations: 317.3 kB / 480.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1254, allocations: 0 / 480.8 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003007/0.1257, allocations: 63.91 kB / 480.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.1257, allocations: 4 kB / 480.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.169e-05/0.1257, allocations: 12.08 kB / 480.9 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1257, allocations: 3.938 kB / 480.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.1257, allocations: 4 kB / 480.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000498/0.1262, allocations: 0.6388 MB / 481.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.1263, allocations: 92.86 kB / 481.6 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.1263, allocations: 8 kB / 481.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/0.1266, allocations: 16 kB / 481.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.998e-05/0.1266, allocations: 11.98 kB / 481.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.1267, allocations: 11.98 kB / 481.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001162/0.1268, allocations: 153.5 kB / 481.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1268, allocations: 0 / 481.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004904/0.1273, allocations: 83.75 kB / 481.9 MB, free: 1.094 MB / 350.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.0007086/0.128, allocations: 1.178 MB / 483.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003328/0.1283, allocations: 204.4 kB / 483.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1283, allocations: 0 / 483.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.1285, allocations: 71.86 kB / 483.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000796/0.1293, allocations: 65.64 kB / 483.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003529/0.1328, allocations: 3.528 MB / 486.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.1331, allocations: 0.7716 MB / 487.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.1332, allocations: 26.97 kB / 487.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.1334, allocations: 91.41 kB / 487.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1334, allocations: 0 / 487.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.341/0.4744, allocations: 5.233 MB / 493.1 MB, free: 5.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.178/8.653, allocations: 11.09 kB / 493.1 MB, free: 5.738 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches