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.001312/0.001312, allocations: 112.8 kB / 17.28 MB, free: 6.199 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.001716/0.001717, allocations: 185.3 kB / 18.2 MB, free: 5.281 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.489/1.489, allocations: 205.1 MB / 224 MB, free: 12.44 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.001202/0.001202, allocations: 51.92 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.111, allocations: 46.63 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006149/0.1172, allocations: 4.56 MB / 331.3 MB, free: 208 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002573/0.1198, allocations: 1.345 MB / 332.7 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000365/0.1202, allocations: 23.81 kB / 332.7 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004277/0.1206, allocations: 130.9 kB / 332.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003575/0.121, allocations: 130.8 kB / 333 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000998/0.122, allocations: 327.7 kB / 333.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001055/0.1231, allocations: 0.9743 MB / 334.3 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006126/0.1237, allocations: 427.1 kB / 334.7 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003981/0.1241, allocations: 322.6 kB / 335 MB, free: 12.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004106/0.1245, allocations: 349.9 kB / 335.3 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.505e-05/0.1246, allocations: 72 kB / 335.4 MB, free: 12.1 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002278/0.1249, allocations: 123.9 kB / 335.5 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.125, allocations: 167.3 kB / 335.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003503/0.1254, allocations: 429.5 kB / 336.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.1265, allocations: 1.039 MB / 337.1 MB, free: 10.35 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.1265, allocations: 0 / 337.1 MB, free: 10.35 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1265, allocations: 0 / 337.1 MB, free: 10.35 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.1265, allocations: 3.984 kB / 337.1 MB, free: 10.35 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.001758/0.1283, allocations: 1.149 MB / 338.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.464e-05/0.1284, allocations: 8.031 kB / 338.3 MB, free: 9.141 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001761/0.1286, allocations: 106.7 kB / 338.4 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009141/0.1295, allocations: 0.5994 MB / 339 MB, free: 8.391 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.705e-05/0.1295, allocations: 58 kB / 339.1 MB, free: 8.332 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.1297, allocations: 80 kB / 339.1 MB, free: 8.254 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.1312, allocations: 0.8442 MB / 340 MB, free: 7.305 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.123e-05/0.1312, allocations: 15.84 kB / 340 MB, free: 7.289 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.072e-05/0.1313, allocations: 32 kB / 340 MB, free: 7.258 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.403e-05/0.1313, allocations: 20 kB / 340 MB, free: 7.238 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008679/0.1322, allocations: 475.3 kB / 340.5 MB, free: 6.773 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00373/0.1359, allocations: 4.408 MB / 344.9 MB, free: 2.172 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006042/0.1366, allocations: 311 kB / 345.2 MB, free: 1.859 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002729/0.1369, allocations: 137.6 kB / 345.4 MB, free: 1.723 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004999/0.1374, allocations: 170.6 kB / 345.5 MB, free: 1.52 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.932e-05/0.1374, allocations: 42.88 kB / 345.6 MB, free: 1.469 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 3.306e-06/0.1374, allocations: 4 kB / 345.6 MB, free: 1.465 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.0036/0.1411, allocations: 1.731 MB / 347.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.1411, allocations: 59.97 kB / 347.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005748/0.1417, allocations: 0.5429 MB / 347.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.25e-05/0.1417, allocations: 37.7 kB / 347.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002981/0.1421, allocations: 470.4 kB / 348.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.1422, allocations: 213 kB / 348.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.1424, allocations: 138.5 kB / 348.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1425, allocations: 382.8 kB / 349.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/0.1428, allocations: 161.9 kB / 349.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005263/0.1434, allocations: 463.2 kB / 349.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007965/0.1442, allocations: 0.6633 MB / 350.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.1442, allocations: 4 kB / 350.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001136/0.1453, allocations: 0.7378 MB / 351.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.1454, allocations: 12 kB / 351.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/0.1454, allocations: 11.94 kB / 351.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002109/0.1456, allocations: 49.53 kB / 351.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005959/0.1462, allocations: 179.7 kB / 351.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.1477, allocations: 1.693 MB / 353.1 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003511/0.1481, allocations: 32 kB / 353.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.531e-05/0.1481, allocations: 36 kB / 353.1 MB, free: 9.332 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.0003633/0.1485, allocations: 237.5 kB / 353.4 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.182e-05/0.1486, allocations: 71.09 kB / 353.4 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001275/0.1487, allocations: 83.14 kB / 353.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-06/0.1487, allocations: 4 kB / 353.5 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.1487, allocations: 0 / 353.5 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.1488, allocations: 3.984 kB / 353.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00209/0.1509, allocations: 1.419 MB / 354.9 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.1509, allocations: 4 kB / 355 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004733/0.1514, allocations: 115.8 kB / 355.1 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.849e-05/0.1515, allocations: 20.84 kB / 355.1 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.898e-05/0.1515, allocations: 16 kB / 355.1 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009486/0.1525, allocations: 1.375 MB / 356.5 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.1525, allocations: 12.09 kB / 356.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.1535, allocations: 0.7721 MB / 357.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.974e-05/0.1536, allocations: 140.2 kB / 357.4 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.344e-05/0.1537, allocations: 19.98 kB / 357.4 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.1539, allocations: 12 kB / 357.4 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.679e-05/0.154, allocations: 47.92 kB / 357.5 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.5e-05/0.154, allocations: 16 kB / 357.5 MB, free: 4.648 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003933/0.1544, allocations: 363.1 kB / 357.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1544, allocations: 0 / 357.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000709/0.1551, allocations: 136 kB / 358 MB, free: 4.164 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.0001704/0.1553, allocations: 119.4 kB / 358.1 MB, free: 4.035 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.1565, allocations: 0.6079 MB / 358.7 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.1565, allocations: 3.938 kB / 358.7 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000397/0.1569, allocations: 319.2 kB / 359 MB, free: 3.086 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006591/0.1576, allocations: 103.2 kB / 359.1 MB, free: 2.988 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.1605, allocations: 2.214 MB / 361.3 MB, free: 0.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004975/0.161, allocations: 0.9613 MB / 362.3 MB, free: 15.72 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002695/0.1613, allocations: 89.91 kB / 362.4 MB, free: 15.63 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.1614, allocations: 59.42 kB / 362.4 MB, free: 15.57 MB / 318.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1614, allocations: 4 kB / 362.4 MB, free: 15.57 MB / 318.1 MB Notification: Performance of Templates: time 0.01061/0.1721, allocations: 5.264 MB / 367.7 MB, free: 10.3 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches