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: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001395/0.001394, allocations: 105.9 kB / 18.3 MB, free: 4.887 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.001592/0.001592, allocations: 195.5 kB / 19.23 MB, free: 3.961 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.334/1.334, allocations: 222.9 MB / 242.9 MB, free: 15.22 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.2014/0.2014, allocations: 44.18 MB / 337.3 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 66.41 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1103, allocations: 60.82 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007022/0.1174, allocations: 5.744 MB / 475.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004353/0.1218, allocations: 2.294 MB / 478 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009507/0.1228, allocations: 43.75 kB / 478 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000593/0.1234, allocations: 230 kB / 478.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005311/0.124, allocations: 178.3 kB / 478.4 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.1252, allocations: 458.9 kB / 478.8 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.1264, allocations: 1.11 MB / 480 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008364/0.1272, allocations: 0.6068 MB / 480.6 MB, free: 3.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004617/0.1277, allocations: 366.7 kB / 480.9 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004298/0.1281, allocations: 394 kB / 481.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001404/0.1283, allocations: 96 kB / 481.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002929/0.1286, allocations: 151.9 kB / 481.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002127/0.1288, allocations: 219.3 kB / 481.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004181/0.1292, allocations: 461.7 kB / 482.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.1304, allocations: 1.242 MB / 483.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1304, allocations: 0 / 483.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1304, allocations: 0 / 483.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.301e-05/0.1305, allocations: 0 / 483.5 MB, free: 0.7656 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.00162/0.1321, allocations: 1.134 MB / 484.6 MB, free: 15.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.1321, allocations: 8.031 kB / 484.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001646/0.1323, allocations: 103.7 kB / 484.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007037/0.133, allocations: 0.567 MB / 485.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.195e-05/0.1331, allocations: 66 kB / 485.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.1332, allocations: 91.91 kB / 485.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.1346, allocations: 0.8931 MB / 486.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.435e-05/0.1347, allocations: 7.906 kB / 486.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.039e-05/0.1347, allocations: 36 kB / 486.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.037e-05/0.1348, allocations: 24 kB / 486.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009505/0.1357, allocations: 0.5229 MB / 486.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003612/0.1393, allocations: 3.646 MB / 490.6 MB, free: 9.359 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005744/0.1399, allocations: 224.5 kB / 490.8 MB, free: 9.129 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001839/0.1401, allocations: 96.83 kB / 490.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003188/0.1405, allocations: 263.3 kB / 491.1 MB, free: 8.719 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.1405, allocations: 34.56 kB / 491.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 4.569e-06/0.1405, allocations: 0 / 491.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002456/0.143, allocations: 1.297 MB / 492.5 MB, free: 7.285 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.511e-05/0.1431, allocations: 59.34 kB / 492.5 MB, free: 7.215 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004307/0.1435, allocations: 401.8 kB / 492.9 MB, free: 6.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.1435, allocations: 33.7 kB / 492.9 MB, free: 6.781 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/0.1438, allocations: 462.1 kB / 493.4 MB, free: 6.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.851e-05/0.1439, allocations: 138 kB / 493.5 MB, free: 6.184 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.1441, allocations: 98.16 kB / 493.6 MB, free: 6.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1442, allocations: 362.8 kB / 494 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002076/0.1444, allocations: 117.1 kB / 494.1 MB, free: 5.602 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000322/0.1448, allocations: 302.2 kB / 494.4 MB, free: 5.223 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005803/0.1454, allocations: 464.7 kB / 494.8 MB, free: 4.684 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1454, allocations: 0 / 494.8 MB, free: 4.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007859/0.1462, allocations: 0.5085 MB / 495.3 MB, free: 4.164 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.1462, allocations: 8 kB / 495.4 MB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.1462, allocations: 4 kB / 495.4 MB, free: 4.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002331/0.1465, allocations: 41.62 kB / 495.4 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000394/0.1469, allocations: 131.8 kB / 495.5 MB, free: 3.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003855/0.1473, allocations: 0.564 MB / 496.1 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.1475, allocations: 20 kB / 496.1 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.123e-05/0.1475, allocations: 27.98 kB / 496.1 MB, free: 3.344 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.0003402/0.1479, allocations: 225.7 kB / 496.4 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.544e-05/0.148, allocations: 55.36 kB / 496.4 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006161/0.1486, allocations: 327.2 kB / 496.7 MB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/0.1486, allocations: 4 kB / 496.7 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.1486, allocations: 0 / 496.7 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.1486, allocations: 3.984 kB / 496.7 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001408/0.15, allocations: 1.054 MB / 497.8 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.1501, allocations: 4 kB / 497.8 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003474/0.1504, allocations: 83.89 kB / 497.9 MB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001516/0.1506, allocations: 36.94 kB / 497.9 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.1506, allocations: 8 kB / 497.9 MB, free: 1.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003134/0.1509, allocations: 0.5522 MB / 498.5 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.1509, allocations: 4.031 kB / 498.5 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007298/0.1517, allocations: 0.555 MB / 499 MB, free: 288 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.734e-05/0.1518, allocations: 120.5 kB / 499.1 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.039e-05/0.1518, allocations: 11.94 kB / 499.2 MB, free: 136 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.152, allocations: 8 kB / 499.2 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.139e-05/0.1521, allocations: 31.91 kB / 499.2 MB, free: 96 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.1521, allocations: 15.98 kB / 499.2 MB, free: 80 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003032/0.1524, allocations: 267.4 kB / 499.5 MB, free: 15.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1524, allocations: 0 / 499.5 MB, free: 15.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005489/0.153, allocations: 131.9 kB / 499.6 MB, free: 15.69 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.0001971/0.1532, allocations: 124.6 kB / 499.7 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000691/0.1539, allocations: 336.9 kB / 0.4883 GB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1539, allocations: 0 / 0.4883 GB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002589/0.1542, allocations: 148 kB / 0.4885 GB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.1547, allocations: 80.58 kB / 0.4886 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/0.1574, allocations: 1.665 MB / 0.4902 GB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005945/0.158, allocations: 0.96 MB / 0.4911 GB, free: 12.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.1581, allocations: 43.42 kB / 0.4912 GB, free: 12.27 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1581, allocations: 0 / 0.4912 GB, free: 12.27 MB / 382.1 MB Notification: Performance of Templates: time 0.01454/0.1727, allocations: 11.14 MB / 0.502 GB, free: 1.129 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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