Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",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.001496/0.001496, allocations: 104 kB / 17.63 MB, free: 5.523 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.001702/0.001702, allocations: 192.1 kB / 18.56 MB, free: 4.605 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.425/1.425, allocations: 222.9 MB / 242.3 MB, free: 15.2 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.2207/0.2207, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.03 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.103, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003542/0.1066, allocations: 2.604 MB / 472 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009538/0.1076, allocations: 0.6389 MB / 472.6 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.1077, allocations: 11.94 kB / 472.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.1078, allocations: 43.58 kB / 472.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.108, allocations: 79.2 kB / 472.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.1082, allocations: 91.81 kB / 472.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003028/0.1085, allocations: 334.6 kB / 473.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.1087, allocations: 77.95 kB / 473.2 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001534/0.1089, allocations: 127.5 kB / 473.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.1091, allocations: 131.4 kB / 473.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.871e-05/0.1091, allocations: 27.94 kB / 473.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.368e-05/0.1092, allocations: 24 kB / 473.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.887e-05/0.1092, allocations: 51.83 kB / 473.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.1093, allocations: 143.2 kB / 473.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.1096, allocations: 299.1 kB / 474 MB, free: 9.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1096, allocations: 0 / 474 MB, free: 9.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1096, allocations: 3.938 kB / 474 MB, free: 9.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1096, allocations: 0 / 474 MB, free: 9.578 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008686/0.1105, allocations: 0.5847 MB / 474.6 MB, free: 8.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.1106, allocations: 12.03 kB / 474.6 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.481e-05/0.1106, allocations: 54.73 kB / 474.7 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.77e-05/0.1107, allocations: 32.56 kB / 474.7 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003146/0.111, allocations: 268.4 kB / 475 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/0.111, allocations: 24.94 kB / 475 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.632e-05/0.1111, allocations: 36.27 kB / 475 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005023/0.1116, allocations: 282 kB / 475.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.1116, allocations: 0 / 475.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.1117, allocations: 12 kB / 475.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.1117, allocations: 12 kB / 475.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004328/0.1121, allocations: 179.8 kB / 475.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.1138, allocations: 1.302 MB / 476.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004112/0.1142, allocations: 254.3 kB / 477 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.1144, allocations: 103.4 kB / 477.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.1145, allocations: 4.125 kB / 477.1 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.4e-05/0.1145, allocations: 46.55 kB / 477.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.562e-06/0.1145, allocations: 0 / 477.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002492/0.117, allocations: 1.568 MB / 478.8 MB, free: 4.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.685e-05/0.1171, allocations: 140.5 kB / 478.9 MB, free: 4.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.1173, allocations: 213 kB / 479.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.1174, allocations: 29.7 kB / 479.1 MB, free: 3.918 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.1175, allocations: 184.2 kB / 479.3 MB, free: 3.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.1176, allocations: 118.3 kB / 479.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.612e-05/0.1177, allocations: 70.12 kB / 479.5 MB, free: 3.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1178, allocations: 334.8 kB / 479.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002548/0.1181, allocations: 100.8 kB / 479.9 MB, free: 3.105 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003513/0.1185, allocations: 241.4 kB / 480.2 MB, free: 2.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006101/0.1191, allocations: 366 kB / 480.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1191, allocations: 0 / 480.5 MB, free: 2.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007254/0.1198, allocations: 401.3 kB / 480.9 MB, free: 1.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.1199, allocations: 12.09 kB / 480.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.1199, allocations: 4 kB / 480.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.1199, allocations: 8.312 kB / 480.9 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003719/0.1203, allocations: 95.88 kB / 481 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.1203, allocations: 15.92 kB / 481 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002032/0.1205, allocations: 23.98 kB / 481.1 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/0.1205, allocations: 20 kB / 481.1 MB, free: 1.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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.0001334/0.1207, allocations: 161.6 kB / 481.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.742e-05/0.1208, allocations: 23.72 kB / 481.3 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.042e-05/0.1208, allocations: 37.7 kB / 481.3 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1209, allocations: 4 kB / 481.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1209, allocations: 0 / 481.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1209, allocations: 3.984 kB / 481.3 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.1223, allocations: 0.9816 MB / 482.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1223, allocations: 3.938 kB / 482.3 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003713/0.1227, allocations: 83.88 kB / 482.4 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.1227, allocations: 0 / 482.4 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.1227, allocations: 11.94 kB / 482.4 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.1228, allocations: 7.938 kB / 482.4 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.1228, allocations: 4 kB / 482.4 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.1238, allocations: 0.7329 MB / 483.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.15e-05/0.1239, allocations: 96.83 kB / 483.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.507e-05/0.1239, allocations: 12 kB / 483.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.1242, allocations: 19.97 kB / 483.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.58e-05/0.1243, allocations: 24.25 kB / 483.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.1244, allocations: 8 kB / 483.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001491/0.1245, allocations: 164.5 kB / 483.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1245, allocations: 3.938 kB / 483.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004657/0.125, allocations: 64 kB / 483.5 MB, free: 15.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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.001249/0.1262, allocations: 1.263 MB / 484.8 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006299/0.1269, allocations: 292.4 kB / 485.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.1269, allocations: 4 kB / 485.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002606/0.1272, allocations: 140.8 kB / 485.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006663/0.1278, allocations: 40.56 kB / 485.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004157/0.132, allocations: 3.496 MB / 488.7 MB, free: 9.781 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.1323, allocations: 0.7642 MB / 489.5 MB, free: 8.992 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001406/0.1325, allocations: 38.89 kB / 489.5 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/0.1326, allocations: 95.39 kB / 489.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1327, allocations: 0 / 489.6 MB, free: 8.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/0.1542, allocations: 5.214 MB / 494.8 MB, free: 3.719 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.49/7.644, allocations: 4.562 kB / 494.9 MB, free: 3.715 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches