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.001182/0.001182, allocations: 104.6 kB / 17.93 MB, free: 5.664 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.001471/0.001471, allocations: 193.8 kB / 18.86 MB, free: 4.738 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.461/1.461, allocations: 205.1 MB / 224.7 MB, free: 12.45 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.001325/0.001326, allocations: 52.12 kB / 280.8 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09505/0.09639, allocations: 46.63 MB / 327.4 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006321/0.1028, allocations: 4.556 MB / 332 MB, free: 208 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00276/0.1056, allocations: 1.353 MB / 333.3 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007344/0.1064, allocations: 23.81 kB / 333.4 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005707/0.107, allocations: 134.9 kB / 333.5 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006405/0.1076, allocations: 126.8 kB / 333.6 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009283/0.1086, allocations: 327.7 kB / 333.9 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001257/0.1098, allocations: 0.9743 MB / 334.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005657/0.1104, allocations: 423.1 kB / 335.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000363/0.1108, allocations: 330.6 kB / 335.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003405/0.1111, allocations: 346 kB / 336 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.178e-05/0.1112, allocations: 72 kB / 336.1 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002028/0.1115, allocations: 119.9 kB / 336.2 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.1116, allocations: 167.3 kB / 336.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003171/0.1119, allocations: 433.5 kB / 336.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007747/0.1127, allocations: 0.8379 MB / 337.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1127, allocations: 0 / 337.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1127, allocations: 0 / 337.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1127, allocations: 0 / 337.6 MB, free: 10.55 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.001728/0.1145, allocations: 1.146 MB / 338.7 MB, free: 9.352 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1145, allocations: 12.03 kB / 338.8 MB, free: 9.34 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001339/0.1147, allocations: 106.7 kB / 338.9 MB, free: 9.234 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007564/0.1154, allocations: 0.5838 MB / 339.4 MB, free: 8.605 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.032e-05/0.1155, allocations: 58 kB / 339.5 MB, free: 8.547 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.1156, allocations: 80 kB / 339.6 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.1169, allocations: 0.8481 MB / 340.4 MB, free: 7.516 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.794e-05/0.1169, allocations: 19.83 kB / 340.4 MB, free: 7.496 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.747e-05/0.117, allocations: 39.94 kB / 340.5 MB, free: 7.457 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.806e-05/0.117, allocations: 20 kB / 340.5 MB, free: 7.438 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008137/0.1178, allocations: 471.3 kB / 341 MB, free: 6.977 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003582/0.1214, allocations: 4.404 MB / 345.4 MB, free: 2.379 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.122, allocations: 307 kB / 345.7 MB, free: 2.07 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/0.1222, allocations: 149.5 kB / 345.8 MB, free: 1.922 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002633/0.1225, allocations: 166.6 kB / 346 MB, free: 1.723 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.1225, allocations: 42.88 kB / 346 MB, free: 1.672 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 1.773e-06/0.1225, allocations: 0 / 346 MB, free: 1.672 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003063/0.1256, allocations: 1.724 MB / 347.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.1256, allocations: 59.97 kB / 347.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000565/0.1262, allocations: 0.543 MB / 348.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.1263, allocations: 33.7 kB / 348.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002986/0.1266, allocations: 478.3 kB / 348.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001475/0.1267, allocations: 209 kB / 349.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.1269, allocations: 146.4 kB / 349.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.127, allocations: 378.8 kB / 349.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002719/0.1273, allocations: 165.9 kB / 349.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004464/0.1278, allocations: 451.2 kB / 350.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007965/0.1286, allocations: 0.6673 MB / 350.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.1286, allocations: 4 kB / 350.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001049/0.1297, allocations: 0.7421 MB / 351.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.1297, allocations: 11.98 kB / 351.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.1297, allocations: 12 kB / 351.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001637/0.1299, allocations: 44.78 kB / 351.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005446/0.1304, allocations: 183.7 kB / 351.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.1318, allocations: 1.685 MB / 353.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002681/0.1321, allocations: 36.05 kB / 353.5 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.1321, allocations: 36 kB / 353.6 MB, free: 9.547 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.0002803/0.1324, allocations: 233.5 kB / 353.8 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.475e-05/0.1325, allocations: 75.09 kB / 353.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.1326, allocations: 71.08 kB / 354 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1326, allocations: 8 kB / 354 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.1327, allocations: 0 / 354 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1327, allocations: 11.92 kB / 354 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001782/0.1345, allocations: 1.415 MB / 355.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.1345, allocations: 4.344 kB / 355.4 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004593/0.1349, allocations: 119.8 kB / 355.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.896e-05/0.135, allocations: 24.92 kB / 355.5 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/0.1351, allocations: 16 kB / 355.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008211/0.1359, allocations: 1.375 MB / 356.9 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.1359, allocations: 4 kB / 356.9 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009532/0.1369, allocations: 0.7761 MB / 357.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.137, allocations: 140.2 kB / 357.8 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.475e-05/0.137, allocations: 16 kB / 357.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.1372, allocations: 12 kB / 357.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.239e-05/0.1373, allocations: 43.98 kB / 357.9 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.789e-05/0.1374, allocations: 23.92 kB / 357.9 MB, free: 4.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003539/0.1377, allocations: 363.1 kB / 358.3 MB, free: 4.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1377, allocations: 0 / 358.3 MB, free: 4.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005824/0.1383, allocations: 136 kB / 358.4 MB, free: 4.379 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.000154/0.1385, allocations: 115.2 kB / 358.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.1395, allocations: 0.6084 MB / 359.1 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.1395, allocations: 4 kB / 359.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003704/0.1399, allocations: 318 kB / 359.5 MB, free: 3.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006104/0.1405, allocations: 96.12 kB / 359.6 MB, free: 3.215 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00278/0.1433, allocations: 2.258 MB / 361.8 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.1439, allocations: 0.9652 MB / 362.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.144, allocations: 63.42 kB / 362.8 MB, free: 15.83 MB / 318.1 MB Notification: Performance of SimCode: time 4.9e-07/0.144, allocations: 0 / 362.8 MB, free: 15.83 MB / 318.1 MB Notification: Performance of Templates: time 0.01446/0.1585, allocations: 12.32 MB / 375.2 MB, free: 3.492 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/jenkins1/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