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.001129/0.00113, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001142/0.001142, allocations: 193.3 kB / 18.91 MB, free: 4.477 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.42/1.42, allocations: 222.9 MB / 242.6 MB, free: 15.33 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.2063/0.2063, allocations: 44.18 MB / 336.9 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.3 kB / 408.5 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.111, allocations: 60.83 MB / 469.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.00728/0.1184, allocations: 5.735 MB / 475.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004064/0.1225, allocations: 2.216 MB / 477.3 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001033/0.1235, allocations: 43.75 kB / 477.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007769/0.1243, allocations: 186.7 kB / 477.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007481/0.1251, allocations: 150.7 kB / 477.7 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.1264, allocations: 395.4 kB / 478.1 MB, free: 6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001437/0.1278, allocations: 1.103 MB / 479.2 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009451/0.1288, allocations: 0.6185 MB / 479.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005203/0.1293, allocations: 362.6 kB / 480.2 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005401/0.1299, allocations: 390 kB / 480.5 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001911/0.1301, allocations: 96 kB / 480.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003127/0.1304, allocations: 155.9 kB / 480.8 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000225/0.1306, allocations: 223.3 kB / 481 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005281/0.1312, allocations: 465.7 kB / 481.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000999/0.1322, allocations: 1.002 MB / 482.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1322, allocations: 3.938 kB / 482.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1322, allocations: 0 / 482.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.974e-05/0.1322, allocations: 0 / 482.5 MB, free: 1.586 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.001856/0.1341, allocations: 1.127 MB / 483.6 MB, free: 416 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1342, allocations: 16.03 kB / 483.6 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.1343, allocations: 99.72 kB / 483.7 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008193/0.1352, allocations: 0.5631 MB / 484.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.62e-05/0.1352, allocations: 70 kB / 484.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.1354, allocations: 95.84 kB / 484.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.137, allocations: 0.8892 MB / 485.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.987e-05/0.137, allocations: 3.906 kB / 485.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.979e-05/0.1371, allocations: 44 kB / 485.4 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.038e-05/0.1371, allocations: 23.98 kB / 485.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009967/0.1381, allocations: 0.5268 MB / 485.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003877/0.142, allocations: 3.639 MB / 489.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005845/0.1426, allocations: 222.6 kB / 489.8 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.1428, allocations: 100.8 kB / 489.9 MB, free: 9.852 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002922/0.1431, allocations: 247.3 kB / 490.1 MB, free: 9.555 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.1431, allocations: 34.56 kB / 490.1 MB, free: 9.512 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.864e-06/0.1432, allocations: 0 / 490.1 MB, free: 9.512 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002371/0.1455, allocations: 1.292 MB / 491.4 MB, free: 8.125 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.1456, allocations: 67.27 kB / 491.5 MB, free: 8.047 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004589/0.1461, allocations: 401.8 kB / 491.9 MB, free: 7.648 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.1461, allocations: 29.7 kB / 491.9 MB, free: 7.613 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003249/0.1464, allocations: 470.1 kB / 492.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.1465, allocations: 138 kB / 492.5 MB, free: 7.008 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.1467, allocations: 102.2 kB / 492.6 MB, free: 6.898 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1468, allocations: 354.8 kB / 493 MB, free: 6.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002315/0.1471, allocations: 117.1 kB / 493.1 MB, free: 6.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003621/0.1475, allocations: 314.2 kB / 493.4 MB, free: 6.039 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005671/0.148, allocations: 460.7 kB / 493.8 MB, free: 5.504 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.148, allocations: 0 / 493.8 MB, free: 5.504 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007821/0.1488, allocations: 0.5132 MB / 494.4 MB, free: 4.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.1489, allocations: 8 kB / 494.4 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.1489, allocations: 4 kB / 494.4 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000193/0.1491, allocations: 36.84 kB / 494.4 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003698/0.1495, allocations: 123.8 kB / 494.5 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003915/0.1499, allocations: 0.568 MB / 495.1 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.1501, allocations: 20 kB / 495.1 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.301e-05/0.1501, allocations: 32 kB / 495.1 MB, free: 4.164 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.0002811/0.1504, allocations: 229.6 kB / 495.4 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.271e-05/0.1505, allocations: 51.42 kB / 495.4 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006051/0.1511, allocations: 343.1 kB / 495.7 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.1511, allocations: 4 kB / 495.8 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/0.1512, allocations: 0 / 495.8 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.1512, allocations: 0 / 495.8 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0014/0.1526, allocations: 1.05 MB / 496.8 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1526, allocations: 4 kB / 496.8 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003415/0.1529, allocations: 75.91 kB / 496.9 MB, free: 2.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001267/0.1531, allocations: 36.78 kB / 496.9 MB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/0.1531, allocations: 11.98 kB / 496.9 MB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002931/0.1534, allocations: 0.5486 MB / 497.5 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.1534, allocations: 3.938 kB / 497.5 MB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007058/0.1541, allocations: 0.555 MB / 498 MB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.414e-05/0.1542, allocations: 116.5 kB / 498.1 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.719e-05/0.1543, allocations: 12 kB / 498.2 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.1545, allocations: 8 kB / 498.2 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.993e-05/0.1545, allocations: 31.91 kB / 498.2 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.1546, allocations: 8 kB / 498.2 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002714/0.1548, allocations: 275.1 kB / 498.5 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1548, allocations: 0 / 498.5 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005308/0.1554, allocations: 128 kB / 498.6 MB, free: 0.5234 MB / 366.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.0001798/0.1556, allocations: 123.7 kB / 498.7 MB, free: 404 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006921/0.1563, allocations: 340.3 kB / 499.1 MB, free: 64 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.1563, allocations: 0 / 499.1 MB, free: 64 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002859/0.1566, allocations: 150.3 kB / 499.2 MB, free: 15.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005313/0.1571, allocations: 80.31 kB / 499.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.1598, allocations: 2.056 MB / 0.4896 GB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.1603, allocations: 0.9599 MB / 0.4905 GB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.1605, allocations: 43.44 kB / 0.4906 GB, free: 12.7 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1605, allocations: 0 / 0.4906 GB, free: 12.7 MB / 382.1 MB Notification: Performance of Templates: time 0.01371/0.1742, allocations: 11.13 MB / 0.5014 GB, free: 1.574 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