Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",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.001267/0.001267, 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.001139/0.001139, 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.446/1.446, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2036/0.2036, allocations: 44.19 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001957, allocations: 73.02 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1141, allocations: 60.81 MB / 469.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008368/0.1226, allocations: 5.758 MB / 475.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005114/0.1277, allocations: 2.29 MB / 477.4 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001683/0.1294, allocations: 39.81 kB / 477.4 MB, free: 6.168 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008727/0.1304, allocations: 230 kB / 477.7 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008999/0.1313, allocations: 178.2 kB / 477.8 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.1328, allocations: 458.9 kB / 478.3 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001676/0.1345, allocations: 1.11 MB / 479.4 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.1357, allocations: 0.6107 MB / 480 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006104/0.1363, allocations: 366.6 kB / 480.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005484/0.1369, allocations: 390 kB / 480.7 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000175/0.137, allocations: 96 kB / 480.8 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003888/0.1374, allocations: 155.9 kB / 481 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002317/0.1377, allocations: 215.3 kB / 481.2 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005194/0.1382, allocations: 473.6 kB / 481.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001201/0.1394, allocations: 1.227 MB / 482.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1394, allocations: 0 / 482.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1394, allocations: 0 / 482.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.27e-05/0.1395, allocations: 0 / 482.9 MB, free: 0.6719 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001779/0.1413, allocations: 1.141 MB / 484 MB, free: 15.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1413, allocations: 12.03 kB / 484 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001463/0.1415, allocations: 143.9 kB / 484.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.1416, allocations: 99.72 kB / 484.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007453/0.1424, allocations: 0.5707 MB / 484.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.936e-05/0.1424, allocations: 66 kB / 484.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.1426, allocations: 95.91 kB / 485 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.144, allocations: 0.8814 MB / 485.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.818e-05/0.144, allocations: 11.91 kB / 485.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.698e-05/0.1441, allocations: 44 kB / 485.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.119e-05/0.1442, allocations: 20 kB / 486 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009639/0.1451, allocations: 0.519 MB / 486.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00375/0.1489, allocations: 3.65 MB / 490.1 MB, free: 9.109 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006427/0.1495, allocations: 224.5 kB / 490.3 MB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.1497, allocations: 108.8 kB / 490.4 MB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004587/0.1502, allocations: 247.3 kB / 490.7 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.1502, allocations: 34.56 kB / 490.7 MB, free: 8.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 3.487e-06/0.1503, allocations: 0 / 490.7 MB, free: 8.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002439/0.1527, allocations: 1.292 MB / 492 MB, free: 7.043 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.1528, allocations: 59.34 kB / 492.1 MB, free: 6.973 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005502/0.1533, allocations: 409.7 kB / 492.5 MB, free: 6.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.1533, allocations: 29.7 kB / 492.5 MB, free: 6.535 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002768/0.1536, allocations: 466.1 kB / 493 MB, free: 6.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.1537, allocations: 138 kB / 493.1 MB, free: 5.934 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.1539, allocations: 98.16 kB / 493.2 MB, free: 5.828 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.154, allocations: 358.8 kB / 493.5 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.1543, allocations: 113.1 kB / 493.7 MB, free: 5.359 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000341/0.1546, allocations: 306.3 kB / 493.9 MB, free: 4.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006036/0.1552, allocations: 460.6 kB / 494.4 MB, free: 4.441 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.1552, allocations: 4 kB / 494.4 MB, free: 4.438 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008301/0.1561, allocations: 0.5128 MB / 494.9 MB, free: 3.914 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1561, allocations: 8 kB / 494.9 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.1561, allocations: 11.94 kB / 494.9 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001931/0.1563, allocations: 36.84 kB / 495 MB, free: 3.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/0.1567, allocations: 131.8 kB / 495.1 MB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003872/0.1571, allocations: 0.5604 MB / 495.7 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.1574, allocations: 16 kB / 495.7 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.932e-05/0.1574, allocations: 31.98 kB / 495.7 MB, free: 3.094 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003018/0.1577, allocations: 229.6 kB / 495.9 MB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.268e-05/0.1578, allocations: 51.38 kB / 496 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006043/0.1584, allocations: 331.2 kB / 496.3 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1584, allocations: 4 kB / 496.3 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1584, allocations: 0 / 496.3 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.1584, allocations: 7.984 kB / 496.3 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/0.1599, allocations: 1.05 MB / 497.4 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/0.1599, allocations: 4 kB / 497.4 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003485/0.1603, allocations: 79.89 kB / 497.4 MB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001342/0.1604, allocations: 32.78 kB / 497.5 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.1605, allocations: 16 kB / 497.5 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003303/0.1608, allocations: 0.5448 MB / 498 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1608, allocations: 3.938 kB / 498 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007864/0.1616, allocations: 0.5704 MB / 498.6 MB, free: 20 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.1617, allocations: 116.5 kB / 498.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.117e-05/0.1618, allocations: 11.94 kB / 498.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.1619, allocations: 8 kB / 498.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.444e-05/0.162, allocations: 35.89 kB / 498.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.1621, allocations: 16 kB / 498.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002777/0.1623, allocations: 267.2 kB / 499.1 MB, free: 15.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1623, allocations: 0 / 499.1 MB, free: 15.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005479/0.1629, allocations: 132 kB / 499.2 MB, free: 15.43 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00104/0.1639, allocations: 1.096 MB / 0.4886 GB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006674/0.1646, allocations: 340.5 kB / 0.4889 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1646, allocations: 0 / 0.4889 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002623/0.1649, allocations: 153.2 kB / 0.489 GB, free: 13.81 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005452/0.1655, allocations: 73.38 kB / 0.4891 GB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006366/0.1718, allocations: 4.883 MB / 0.4939 GB, free: 8.566 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000674/0.1726, allocations: 0.9561 MB / 0.4948 GB, free: 7.586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001965/0.1728, allocations: 68.47 kB / 0.4949 GB, free: 7.516 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003177/0.1731, allocations: 295.3 kB / 0.4952 GB, free: 7.227 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1731, allocations: 3.938 kB / 0.4952 GB, free: 7.223 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2431/0.4162, allocations: 9.119 MB / 0.5041 GB, free: 49.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.66, allocations: 9.125 kB / 0.5041 GB, free: 49.19 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches