Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.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: 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_trunk_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_trunk_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001337/0.001337, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2281/0.2281, allocations: 46.12 MB / 344.5 MB, free: 11.72 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002209/0.002209, allocations: 82.11 kB / 417.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1227, allocations: 62.45 MB / 480.2 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008003/0.1308, allocations: 5.755 MB / 486 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004503/0.1353, allocations: 2.298 MB / 488.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.1365, allocations: 35.81 kB / 488.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006245/0.1371, allocations: 182.6 kB / 488.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005509/0.1377, allocations: 150.8 kB / 488.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1389, allocations: 403.3 kB / 489 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001371/0.1403, allocations: 1.111 MB / 490.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009316/0.1413, allocations: 0.6224 MB / 490.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000584/0.1419, allocations: 366.6 kB / 491.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004455/0.1423, allocations: 390.1 kB / 491.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.1425, allocations: 96 kB / 491.6 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003106/0.1428, allocations: 159.9 kB / 491.7 MB, free: 9.961 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000209/0.143, allocations: 219.2 kB / 492 MB, free: 9.746 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004448/0.1434, allocations: 469.6 kB / 492.4 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001124/0.1446, allocations: 0.9979 MB / 493.4 MB, free: 8.285 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1446, allocations: 0 / 493.4 MB, free: 8.285 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1446, allocations: 0 / 493.4 MB, free: 8.285 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.977e-05/0.1446, allocations: 0 / 493.4 MB, free: 8.285 MB / 366.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.00174/0.1464, allocations: 1.138 MB / 494.6 MB, free: 7.094 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.1464, allocations: 12.03 kB / 494.6 MB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002831/0.1467, allocations: 115.7 kB / 494.7 MB, free: 6.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008251/0.1476, allocations: 0.5669 MB / 495.2 MB, free: 6.359 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.257e-05/0.1476, allocations: 70 kB / 495.3 MB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.1478, allocations: 91.91 kB / 495.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001628/0.1494, allocations: 0.8892 MB / 496.3 MB, free: 5.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.416e-05/0.1495, allocations: 7.906 kB / 496.3 MB, free: 5.242 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.062e-05/0.1495, allocations: 36 kB / 496.3 MB, free: 5.207 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/0.1496, allocations: 28 kB / 496.4 MB, free: 5.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.1507, allocations: 0.5229 MB / 496.9 MB, free: 4.656 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004423/0.1551, allocations: 3.639 MB / 0.4888 GB, free: 0.8594 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006358/0.1558, allocations: 236.4 kB / 0.489 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001951/0.156, allocations: 105.3 kB / 0.4891 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003482/0.1563, allocations: 251.3 kB / 0.4894 GB, free: 216 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.1564, allocations: 34.56 kB / 0.4894 GB, free: 172 kB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.836e-06/0.1564, allocations: 0 / 0.4894 GB, free: 172 kB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002722/0.1591, allocations: 1.285 MB / 0.4906 GB, free: 14.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.1592, allocations: 59.34 kB / 0.4907 GB, free: 14.72 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004962/0.1597, allocations: 405.8 kB / 0.4911 GB, free: 14.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.221e-05/0.1598, allocations: 37.64 kB / 0.4911 GB, free: 14.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003524/0.1601, allocations: 470.1 kB / 0.4916 GB, free: 13.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.1602, allocations: 138 kB / 0.4917 GB, free: 13.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/0.1604, allocations: 98.16 kB / 0.4918 GB, free: 13.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.1606, allocations: 362.8 kB / 0.4921 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.1608, allocations: 113.1 kB / 0.4923 GB, free: 13.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003808/0.1612, allocations: 302.3 kB / 0.4925 GB, free: 12.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006507/0.1619, allocations: 467.4 kB / 0.493 GB, free: 12.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.1619, allocations: 0 / 0.493 GB, free: 12.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008719/0.1628, allocations: 0.5134 MB / 0.4935 GB, free: 11.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/0.1628, allocations: 8 kB / 0.4935 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.1629, allocations: 4 kB / 0.4935 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000238/0.1631, allocations: 40.83 kB / 0.4935 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003814/0.1635, allocations: 119.8 kB / 0.4937 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004602/0.164, allocations: 0.5601 MB / 0.4942 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/0.1642, allocations: 28.14 kB / 0.4942 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.438e-05/0.1643, allocations: 31.88 kB / 0.4943 GB, free: 10.83 MB / 382.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.0003664/0.1647, allocations: 225.6 kB / 0.4945 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.01e-05/0.1647, allocations: 55.28 kB / 0.4945 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006396/0.1654, allocations: 334.9 kB / 0.4948 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.1654, allocations: 12.03 kB / 0.4949 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.1654, allocations: 0 / 0.4949 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.1654, allocations: 3.984 kB / 0.4949 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/0.167, allocations: 1.054 MB / 0.4959 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.167, allocations: 0 / 0.4959 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003694/0.1674, allocations: 83.89 kB / 0.496 GB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001496/0.1676, allocations: 32.78 kB / 0.496 GB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.831e-05/0.1676, allocations: 12 kB / 0.496 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003986/0.168, allocations: 0.5448 MB / 0.4965 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.168, allocations: 0 / 0.4965 GB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008581/0.1689, allocations: 0.5633 MB / 0.4971 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.169, allocations: 116.5 kB / 0.4972 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.955e-05/0.1691, allocations: 11.98 kB / 0.4972 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.1693, allocations: 8 kB / 0.4972 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.045e-05/0.1693, allocations: 27.91 kB / 0.4972 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.1694, allocations: 16 kB / 0.4973 GB, free: 7.566 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003287/0.1697, allocations: 275.1 kB / 0.4975 GB, free: 7.305 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1697, allocations: 0 / 0.4975 GB, free: 7.305 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005366/0.1703, allocations: 120 kB / 0.4976 GB, free: 7.188 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.0001808/0.1704, allocations: 111.3 kB / 0.4977 GB, free: 7.066 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007593/0.1712, allocations: 348.8 kB / 0.4981 GB, free: 6.727 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1712, allocations: 4 kB / 0.4981 GB, free: 6.723 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002819/0.1715, allocations: 151.7 kB / 0.4982 GB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005274/0.1721, allocations: 69.06 kB / 0.4983 GB, free: 6.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003148/0.1752, allocations: 2.066 MB / 0.5003 GB, free: 4.398 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006938/0.1759, allocations: 0.9599 MB / 0.5012 GB, free: 3.414 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.1761, allocations: 43.44 kB / 0.5013 GB, free: 3.371 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1761, allocations: 0 / 0.5013 GB, free: 3.371 MB / 382.1 MB Notification: Performance of Templates: time 0.1928/0.3689, allocations: 11.16 MB / 0.5122 GB, free: 40.18 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches