Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001248/0.001248, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001391/0.001391, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2287/0.2287, allocations: 46.1 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 79.19 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1202, allocations: 62.45 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004501/0.1248, allocations: 2.631 MB / 482.8 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.1262, allocations: 0.7245 MB / 483.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002335/0.1264, allocations: 11.94 kB / 483.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.1267, allocations: 47.52 kB / 483.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002551/0.127, allocations: 83.2 kB / 483.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004309/0.1274, allocations: 99.8 kB / 483.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004525/0.1279, allocations: 330.6 kB / 484 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.1281, allocations: 81.94 kB / 484.1 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002667/0.1284, allocations: 139.5 kB / 484.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.1286, allocations: 135.3 kB / 484.4 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.568e-05/0.1286, allocations: 20 kB / 484.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.108e-05/0.1287, allocations: 28 kB / 484.4 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.61e-05/0.1288, allocations: 55.77 kB / 484.5 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.1289, allocations: 143.2 kB / 484.6 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003195/0.1292, allocations: 303.1 kB / 484.9 MB, free: 376 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1293, allocations: 4 kB / 484.9 MB, free: 372 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1293, allocations: 0 / 484.9 MB, free: 372 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1293, allocations: 0 / 484.9 MB, free: 372 kB / 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.0009246/0.1302, allocations: 0.5846 MB / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.1303, allocations: 15.97 kB / 485.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.078e-05/0.1303, allocations: 62.72 kB / 485.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000252/0.1306, allocations: 48.55 kB / 485.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.1309, allocations: 276.7 kB / 485.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.1309, allocations: 16.94 kB / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.469e-05/0.131, allocations: 28.38 kB / 485.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004739/0.1315, allocations: 282 kB / 486.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.1315, allocations: 7.906 kB / 486.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.1316, allocations: 15.98 kB / 486.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.1316, allocations: 8 kB / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004167/0.132, allocations: 183.7 kB / 486.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.1337, allocations: 1.31 MB / 487.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004255/0.1341, allocations: 250.5 kB / 488 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/0.1343, allocations: 99.33 kB / 488.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.1344, allocations: 4 kB / 488.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.1344, allocations: 42.56 kB / 488.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 3.327e-06/0.1344, allocations: 0 / 488.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002639/0.1371, allocations: 1.572 MB / 489.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.355e-05/0.1372, allocations: 136.5 kB / 489.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.1374, allocations: 220.9 kB / 490.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.1374, allocations: 37.7 kB / 490.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.1375, allocations: 172.2 kB / 490.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.193e-05/0.1376, allocations: 123.5 kB / 490.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.1377, allocations: 70.03 kB / 490.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1379, allocations: 342.8 kB / 490.8 MB, free: 9.949 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.1381, allocations: 96.81 kB / 490.9 MB, free: 9.855 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003425/0.1385, allocations: 241.4 kB / 491.1 MB, free: 9.555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006188/0.1391, allocations: 369 kB / 491.5 MB, free: 9.133 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.1391, allocations: 4 kB / 491.5 MB, free: 9.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007719/0.1399, allocations: 389.3 kB / 491.9 MB, free: 8.742 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.1399, allocations: 4 kB / 491.9 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.14, allocations: 8 kB / 491.9 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.14, allocations: 4 kB / 491.9 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004714/0.1405, allocations: 107.8 kB / 492 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.423e-05/0.1405, allocations: 11.98 kB / 492 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/0.1408, allocations: 23.89 kB / 492 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.1408, allocations: 16.16 kB / 492 MB, free: 8.57 MB / 366.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.000176/0.141, allocations: 161.6 kB / 492.2 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.1411, allocations: 31.66 kB / 492.2 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.642e-05/0.1412, allocations: 33.7 kB / 492.2 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.1412, allocations: 4 kB / 492.3 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.1412, allocations: 4 kB / 492.3 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1412, allocations: 3.984 kB / 492.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.1428, allocations: 0.9855 MB / 493.2 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1428, allocations: 0 / 493.2 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003637/0.1431, allocations: 83.88 kB / 493.3 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.1432, allocations: 240 / 493.3 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.1432, allocations: 11.94 kB / 493.3 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.1432, allocations: 4 kB / 493.3 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1432, allocations: 288 / 493.3 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.1442, allocations: 0.7368 MB / 494.1 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.455e-05/0.1443, allocations: 100.7 kB / 494.2 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.838e-05/0.1444, allocations: 15.98 kB / 494.2 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003075/0.1447, allocations: 15.98 kB / 494.2 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.869e-05/0.1448, allocations: 27.91 kB / 494.2 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.1448, allocations: 16 kB / 494.3 MB, free: 6.227 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001449/0.145, allocations: 156.5 kB / 494.4 MB, free: 6.078 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.145, allocations: 0 / 494.4 MB, free: 6.078 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004965/0.1455, allocations: 72 kB / 494.5 MB, free: 6.008 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.001309/0.1468, allocations: 1.271 MB / 495.7 MB, free: 4.703 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006873/0.1475, allocations: 284.2 kB / 496 MB, free: 4.426 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.1475, allocations: 0.8125 kB / 496 MB, free: 4.426 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003148/0.1478, allocations: 131.8 kB / 496.2 MB, free: 4.297 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007434/0.1486, allocations: 41.53 kB / 496.2 MB, free: 4.254 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004781/0.1534, allocations: 3.51 MB / 499.7 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004301/0.1538, allocations: 0.772 MB / 0.4887 GB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001627/0.154, allocations: 34.95 kB / 0.4888 GB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.1542, allocations: 95.34 kB / 0.4889 GB, free: 15.6 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1542, allocations: 4 kB / 0.4889 GB, free: 15.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02713/0.1813, allocations: 5.257 MB / 0.494 GB, free: 10.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.733/7.915, allocations: 17.52 kB / 0.494 GB, free: 10.39 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches