Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.001341/0.001341, allocations: 191 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 51.91 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1075, allocations: 46.63 MB / 328.7 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006081/0.1136, allocations: 4.562 MB / 333.3 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002508/0.1161, allocations: 1.369 MB / 334.7 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003/0.1165, allocations: 23.88 kB / 334.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003822/0.1169, allocations: 182.2 kB / 334.9 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002914/0.1172, allocations: 158.3 kB / 335 MB, free: 13.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006853/0.1179, allocations: 371.5 kB / 335.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009042/0.1188, allocations: 0.9782 MB / 336.4 MB, free: 12.11 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000574/0.1193, allocations: 426.8 kB / 336.8 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003812/0.1197, allocations: 318.6 kB / 337.1 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003985/0.1201, allocations: 349.9 kB / 337.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.034e-05/0.1202, allocations: 72 kB / 337.5 MB, free: 10.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001993/0.1205, allocations: 116 kB / 337.6 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.1206, allocations: 171.3 kB / 337.8 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003547/0.121, allocations: 425.5 kB / 338.2 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.122, allocations: 1.078 MB / 339.3 MB, free: 9.164 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.029e-05/0.1221, allocations: 3.984 kB / 339.3 MB, free: 9.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1221, allocations: 4 kB / 339.3 MB, free: 9.156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.1221, allocations: 0 / 339.3 MB, free: 9.156 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001682/0.1238, allocations: 1.149 MB / 340.4 MB, free: 7.957 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.1238, allocations: 8.031 kB / 340.4 MB, free: 7.949 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.124, allocations: 110.6 kB / 340.5 MB, free: 7.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009454/0.1249, allocations: 0.6228 MB / 341.2 MB, free: 7.176 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.781e-05/0.125, allocations: 62 kB / 341.2 MB, free: 7.113 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.1251, allocations: 76 kB / 341.3 MB, free: 7.039 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.1264, allocations: 0.8481 MB / 342.1 MB, free: 6.086 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.391e-05/0.1264, allocations: 11.84 kB / 342.2 MB, free: 6.074 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.52e-05/0.1265, allocations: 36 kB / 342.2 MB, free: 6.039 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.598e-05/0.1265, allocations: 20 kB / 342.2 MB, free: 6.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008804/0.1274, allocations: 475.3 kB / 342.7 MB, free: 5.555 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003512/0.1309, allocations: 4.373 MB / 347.1 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005768/0.1315, allocations: 315.2 kB / 347.4 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000233/0.1318, allocations: 141.5 kB / 347.5 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001859/0.132, allocations: 162.6 kB / 347.7 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.132, allocations: 38.94 kB / 347.7 MB, free: 296 kB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 2.184e-06/0.132, allocations: 0 / 347.7 MB, free: 296 kB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003328/0.1354, allocations: 1.735 MB / 349.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.1354, allocations: 63.91 kB / 349.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005881/0.136, allocations: 0.5391 MB / 350 MB, free: 13.83 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.1361, allocations: 37.7 kB / 350.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.1363, allocations: 474.4 kB / 350.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.1365, allocations: 213 kB / 350.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001791/0.1367, allocations: 142.5 kB / 350.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1368, allocations: 382.8 kB / 351.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002774/0.1371, allocations: 161.9 kB / 351.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005087/0.1377, allocations: 447.2 kB / 351.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008088/0.1385, allocations: 0.6673 MB / 352.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.1385, allocations: 8 kB / 352.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.00113/0.1396, allocations: 0.7421 MB / 353.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.1397, allocations: 16.22 kB / 353.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.1397, allocations: 8 kB / 353.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001911/0.1399, allocations: 44.84 kB / 353.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005769/0.1405, allocations: 183.7 kB / 353.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/0.142, allocations: 1.685 MB / 355.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.1423, allocations: 28 kB / 355.2 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-05/0.1424, allocations: 39.94 kB / 355.3 MB, free: 8.152 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (101): * Single equations (assignments): 100 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003148/0.1427, allocations: 241.6 kB / 355.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.679e-05/0.1428, allocations: 71.09 kB / 355.6 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.1429, allocations: 71.08 kB / 355.6 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1429, allocations: 8 kB / 355.6 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.143, allocations: 0 / 355.6 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.143, allocations: 3.984 kB / 355.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001948/0.1449, allocations: 1.412 MB / 357.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.491e-06/0.1449, allocations: 8.031 kB / 357.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004872/0.1454, allocations: 115.8 kB / 357.2 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.234e-05/0.1455, allocations: 24.84 kB / 357.2 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/0.1456, allocations: 16 kB / 357.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000967/0.1465, allocations: 1.371 MB / 358.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1466, allocations: 0 / 358.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009988/0.1476, allocations: 0.7774 MB / 359.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.1477, allocations: 144.3 kB / 359.5 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.411e-05/0.1478, allocations: 15.94 kB / 359.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.148, allocations: 16 kB / 359.5 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.326e-05/0.1481, allocations: 43.89 kB / 359.6 MB, free: 3.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.797e-05/0.1481, allocations: 20 kB / 359.6 MB, free: 3.484 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004042/0.1485, allocations: 359.1 kB / 360 MB, free: 3.137 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1485, allocations: 0 / 360 MB, free: 3.137 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000639/0.1492, allocations: 140.2 kB / 360.1 MB, free: 3 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * 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 (56): * Single equations (assignments): 55 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001514/0.1493, allocations: 115.1 kB / 360.2 MB, free: 2.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009572/0.1503, allocations: 0.5966 MB / 360.8 MB, free: 2.262 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.1503, allocations: 4.125 kB / 360.8 MB, free: 2.258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003854/0.1507, allocations: 310 kB / 361.1 MB, free: 1.941 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000587/0.1513, allocations: 101.7 kB / 361.2 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.1539, allocations: 1.847 MB / 363.1 MB, free: 15.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005292/0.1545, allocations: 0.9574 MB / 364 MB, free: 14.95 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002338/0.1547, allocations: 85.94 kB / 364.1 MB, free: 14.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.1549, allocations: 59.42 kB / 364.2 MB, free: 14.8 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1549, allocations: 0 / 364.2 MB, free: 14.8 MB / 318.1 MB Notification: Performance of Templates: time 0.01236/0.1672, allocations: 5.279 MB / 369.4 MB, free: 9.523 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches