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.001117/0.001117, allocations: 108.2 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001173/0.001173, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2296/0.2296, allocations: 46.11 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001388, allocations: 79.34 kB / 416.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1308, allocations: 62.44 MB / 479.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.00727/0.1381, allocations: 5.754 MB / 485 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004354/0.1425, allocations: 2.333 MB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.1437, allocations: 39.75 kB / 487.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006084/0.1443, allocations: 178.6 kB / 487.6 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004669/0.1449, allocations: 146.8 kB / 487.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.146, allocations: 403.4 kB / 488.1 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00104/0.147, allocations: 1.044 MB / 489.2 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008149/0.1479, allocations: 0.5517 MB / 489.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004254/0.1483, allocations: 330.6 kB / 490 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00036/0.1487, allocations: 366 kB / 490.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.684e-05/0.1488, allocations: 52 kB / 490.4 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002634/0.149, allocations: 116 kB / 490.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.1492, allocations: 179.2 kB / 490.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003406/0.1496, allocations: 425.6 kB / 491.2 MB, free: 9.809 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000983/0.1506, allocations: 1.16 MB / 492.3 MB, free: 8.645 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1506, allocations: 0 / 492.3 MB, free: 8.645 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1506, allocations: 0 / 492.3 MB, free: 8.645 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.1506, allocations: 4 kB / 492.3 MB, free: 8.641 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.001554/0.1522, allocations: 1.142 MB / 493.5 MB, free: 7.445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.1522, allocations: 12.88 kB / 493.5 MB, free: 7.434 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002626/0.1525, allocations: 111.7 kB / 493.6 MB, free: 7.324 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007134/0.1532, allocations: 0.5631 MB / 494.1 MB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.962e-05/0.1533, allocations: 69.94 kB / 494.2 MB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.1534, allocations: 91.91 kB / 494.3 MB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.1548, allocations: 0.8893 MB / 495.2 MB, free: 5.609 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.255e-05/0.1549, allocations: 11.84 kB / 495.2 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.956e-05/0.155, allocations: 36 kB / 495.2 MB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.645e-05/0.155, allocations: 27.94 kB / 495.3 MB, free: 5.535 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.1561, allocations: 0.5229 MB / 495.8 MB, free: 5.012 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004592/0.1607, allocations: 3.643 MB / 499.4 MB, free: 1.211 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006012/0.1613, allocations: 234.7 kB / 499.7 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001831/0.1615, allocations: 101.3 kB / 499.8 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002436/0.1618, allocations: 263.3 kB / 0.4883 GB, free: 0.5586 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.1618, allocations: 30.56 kB / 0.4883 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.445e-06/0.1618, allocations: 0 / 0.4883 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.0024/0.1642, allocations: 1.288 MB / 0.4896 GB, free: 15.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/0.1643, allocations: 59.34 kB / 0.4896 GB, free: 15.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004309/0.1647, allocations: 401.8 kB / 0.49 GB, free: 14.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.347e-05/0.1648, allocations: 33.7 kB / 0.4901 GB, free: 14.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003092/0.1651, allocations: 462.1 kB / 0.4905 GB, free: 14.17 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.821e-05/0.1652, allocations: 146 kB / 0.4906 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.1653, allocations: 98.16 kB / 0.4907 GB, free: 13.92 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1655, allocations: 366.8 kB / 0.4911 GB, free: 13.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002165/0.1657, allocations: 113.1 kB / 0.4912 GB, free: 13.45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003472/0.1661, allocations: 302.2 kB / 0.4915 GB, free: 13.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005744/0.1667, allocations: 471.4 kB / 0.4919 GB, free: 12.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1667, allocations: 0 / 0.4919 GB, free: 12.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007909/0.1675, allocations: 0.5088 MB / 0.4924 GB, free: 12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.1675, allocations: 8 kB / 0.4924 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.1675, allocations: 4 kB / 0.4924 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000197/0.1677, allocations: 45.61 kB / 0.4925 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/0.1681, allocations: 127.8 kB / 0.4926 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000406/0.1685, allocations: 0.5562 MB / 0.4931 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.1687, allocations: 19.98 kB / 0.4932 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.239e-05/0.1688, allocations: 24 kB / 0.4932 GB, free: 11.19 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.0003029/0.1691, allocations: 233.6 kB / 0.4934 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.421e-05/0.1692, allocations: 59.34 kB / 0.4935 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006218/0.1698, allocations: 323 kB / 0.4938 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.1698, allocations: 8 kB / 0.4938 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1698, allocations: 0 / 0.4938 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1699, allocations: 3.984 kB / 0.4938 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00147/0.1713, allocations: 1.058 MB / 0.4948 GB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.1713, allocations: 0 / 0.4948 GB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003667/0.1717, allocations: 83.83 kB / 0.4949 GB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001265/0.1719, allocations: 40.88 kB / 0.4949 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/0.1719, allocations: 12 kB / 0.4949 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003271/0.1722, allocations: 0.5407 MB / 0.4955 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.1722, allocations: 4.031 kB / 0.4955 GB, free: 8.715 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007693/0.173, allocations: 0.5594 MB / 0.496 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.26e-05/0.1731, allocations: 116.5 kB / 0.4961 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.933e-05/0.1732, allocations: 11.98 kB / 0.4961 GB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.1733, allocations: 15.98 kB / 0.4962 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.248e-05/0.1734, allocations: 31.94 kB / 0.4962 GB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.306e-05/0.1734, allocations: 12 kB / 0.4962 GB, free: 7.914 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002812/0.1737, allocations: 271.1 kB / 0.4965 GB, free: 7.656 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1737, allocations: 0 / 0.4965 GB, free: 7.656 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000527/0.1743, allocations: 124 kB / 0.4966 GB, free: 7.535 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.0002331/0.1745, allocations: 119.2 kB / 0.4967 GB, free: 7.406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006538/0.1752, allocations: 321.3 kB / 0.497 GB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1752, allocations: 192 / 0.497 GB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002975/0.1755, allocations: 156.2 kB / 0.4971 GB, free: 6.941 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005436/0.176, allocations: 69.88 kB / 0.4972 GB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003139/0.1792, allocations: 1.999 MB / 0.4992 GB, free: 4.828 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007161/0.1799, allocations: 0.9561 MB / 0.5001 GB, free: 3.848 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002174/0.1801, allocations: 64.52 kB / 0.5002 GB, free: 3.781 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.824e-05/0.1802, allocations: 39.44 kB / 0.5002 GB, free: 3.742 MB / 382.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1802, allocations: 0 / 0.5002 GB, free: 3.742 MB / 382.1 MB Notification: Performance of Templates: time 0.2319/0.4121, allocations: 3.945 MB / 0.5041 GB, free: 41.09 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches