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.00116/0.00116, allocations: 104.2 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.001216/0.001216, allocations: 191.9 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.262/1.262, 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.1934/0.1934, allocations: 44.18 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 67.67 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1167, allocations: 60.83 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.00756/0.1243, allocations: 5.74 MB / 475.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004433/0.1287, allocations: 2.294 MB / 477.4 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001212/0.13, allocations: 39.81 kB / 477.4 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008027/0.1308, allocations: 230 kB / 477.7 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007604/0.1316, allocations: 178.2 kB / 477.8 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001317/0.133, allocations: 462.9 kB / 478.3 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001291/0.1343, allocations: 1.114 MB / 479.4 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009006/0.1352, allocations: 0.6107 MB / 480 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005525/0.1357, allocations: 362.7 kB / 480.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006245/0.1364, allocations: 394 kB / 480.7 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002694/0.1367, allocations: 100 kB / 480.8 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004108/0.1371, allocations: 147.9 kB / 481 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000216/0.1373, allocations: 215.3 kB / 481.2 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004839/0.1378, allocations: 473.6 kB / 481.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001365/0.1392, allocations: 1.227 MB / 482.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1392, allocations: 0 / 482.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.118e-06/0.1392, allocations: 0 / 482.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.68e-05/0.1392, allocations: 3.938 kB / 482.9 MB, free: 0.668 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.001657/0.1409, allocations: 1.134 MB / 484 MB, free: 15.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.141, allocations: 8.031 kB / 484 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001381/0.1411, allocations: 143.9 kB / 484.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.1412, allocations: 99.72 kB / 484.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007022/0.1419, allocations: 0.5668 MB / 484.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.818e-05/0.142, allocations: 66 kB / 484.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.1421, allocations: 95.91 kB / 485 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.1436, allocations: 0.8853 MB / 485.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.71e-05/0.1437, allocations: 7.906 kB / 485.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.619e-05/0.1437, allocations: 36 kB / 485.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.328e-05/0.1438, allocations: 31.92 kB / 486 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009739/0.1448, allocations: 0.5229 MB / 486.5 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003553/0.1483, allocations: 3.643 MB / 490.1 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005783/0.1489, allocations: 230.6 kB / 490.3 MB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.1491, allocations: 100.8 kB / 490.4 MB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002837/0.1494, allocations: 251.3 kB / 490.7 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/0.1495, allocations: 38.5 kB / 490.7 MB, free: 8.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.384e-06/0.1495, allocations: 0 / 490.7 MB, free: 8.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002352/0.1518, allocations: 1.289 MB / 492 MB, free: 7.047 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.1519, allocations: 59.28 kB / 492.1 MB, free: 6.977 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004179/0.1523, allocations: 405.8 kB / 492.5 MB, free: 6.578 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.1523, allocations: 29.7 kB / 492.5 MB, free: 6.543 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.1526, allocations: 470.1 kB / 493 MB, free: 6.074 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.937e-05/0.1527, allocations: 138 kB / 493.1 MB, free: 5.938 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.1528, allocations: 94.16 kB / 493.2 MB, free: 5.836 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.153, allocations: 366.8 kB / 493.5 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.1532, allocations: 113.1 kB / 493.6 MB, free: 5.359 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002986/0.1535, allocations: 308.1 kB / 494 MB, free: 4.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005257/0.154, allocations: 460.7 kB / 494.4 MB, free: 4.441 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.154, allocations: 4 kB / 494.4 MB, free: 4.438 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000753/0.1548, allocations: 0.5085 MB / 494.9 MB, free: 3.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.1548, allocations: 8 kB / 494.9 MB, free: 3.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.1548, allocations: 8 kB / 494.9 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001854/0.155, allocations: 41.52 kB / 495 MB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003723/0.1554, allocations: 131.7 kB / 495.1 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000342/0.1557, allocations: 0.5563 MB / 495.7 MB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001994/0.156, allocations: 19.98 kB / 495.7 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.462e-05/0.156, allocations: 28 kB / 495.7 MB, free: 3.102 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.0002889/0.1563, allocations: 225.6 kB / 495.9 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.1564, allocations: 55.44 kB / 496 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005968/0.157, allocations: 327.2 kB / 496.3 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.157, allocations: 0 / 496.3 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1571, allocations: 7.938 kB / 496.3 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1571, allocations: 3.984 kB / 496.3 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00153/0.1586, allocations: 1.058 MB / 497.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.1586, allocations: 4 kB / 497.4 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005024/0.1591, allocations: 79.89 kB / 497.4 MB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001293/0.1593, allocations: 36.94 kB / 497.5 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/0.1593, allocations: 12 kB / 497.5 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003157/0.1596, allocations: 0.5486 MB / 498 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.1596, allocations: 3.938 kB / 498 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000721/0.1604, allocations: 0.5742 MB / 498.6 MB, free: 16 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.912e-05/0.1605, allocations: 112.5 kB / 498.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.032e-05/0.1605, allocations: 8 kB / 498.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.1607, allocations: 11.98 kB / 498.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.762e-05/0.1608, allocations: 35.91 kB / 498.8 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.1608, allocations: 12 kB / 498.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002431/0.161, allocations: 267.1 kB / 499.1 MB, free: 15.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.161, allocations: 0 / 499.1 MB, free: 15.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004911/0.1615, 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.0009586/0.1625, allocations: 1.1 MB / 0.4886 GB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006402/0.1632, allocations: 337.9 kB / 0.4889 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1632, allocations: 0 / 0.4889 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002544/0.1634, allocations: 152.1 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.0005203/0.164, allocations: 76 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.00566/0.1696, allocations: 4.89 MB / 0.4939 GB, free: 8.566 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005791/0.1702, allocations: 0.9561 MB / 0.4948 GB, free: 7.586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002056/0.1704, allocations: 68.39 kB / 0.4949 GB, free: 7.516 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003372/0.1708, allocations: 295.3 kB / 0.4952 GB, free: 7.227 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1708, allocations: 0 / 0.4952 GB, free: 7.227 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3245/0.4953, allocations: 9.117 MB / 0.5041 GB, free: 49.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.66, allocations: 5.969 kB / 0.5041 GB, free: 49.25 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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