Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001004/0.001004, allocations: 111.4 kB / 17.68 MB, free: 5.496 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.000983/0.0009831, allocations: 192 kB / 18.62 MB, free: 4.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009525/0.0009527, allocations: 54.81 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1092, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005779/0.115, allocations: 4.572 MB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002301/0.1174, allocations: 1.337 MB / 357.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002623/0.1176, allocations: 19.88 kB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003794/0.118, allocations: 174.2 kB / 357.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002884/0.1184, allocations: 162.3 kB / 357.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007062/0.1191, allocations: 371.5 kB / 358.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008965/0.12, allocations: 0.9782 MB / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005355/0.1205, allocations: 418.9 kB / 359.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003292/0.1209, allocations: 322.6 kB / 359.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003366/0.1212, allocations: 346 kB / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.011e-05/0.1213, allocations: 72 kB / 360.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002016/0.1215, allocations: 123.9 kB / 360.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.1217, allocations: 167.3 kB / 360.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003375/0.122, allocations: 425.5 kB / 360.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008848/0.1229, allocations: 1.086 MB / 362 MB, free: 9.102 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1229, allocations: 4 kB / 362 MB, free: 9.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1229, allocations: 0 / 362 MB, free: 9.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1229, allocations: 0 / 362 MB, free: 9.098 MB / 302.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.001495/0.1244, allocations: 1.138 MB / 363.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.1245, allocations: 12.03 kB / 363.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.1246, allocations: 102.8 kB / 363.3 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.1257, allocations: 0.6266 MB / 363.9 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.156e-05/0.1258, allocations: 62 kB / 363.9 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.1259, allocations: 87.89 kB / 364 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/0.1272, allocations: 0.8519 MB / 364.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.118e-05/0.1272, allocations: 7.906 kB / 364.9 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.445e-05/0.1273, allocations: 36 kB / 364.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.029e-05/0.1273, allocations: 23.94 kB / 364.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008356/0.1281, allocations: 475.3 kB / 365.4 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003415/0.1316, allocations: 4.369 MB / 369.8 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005663/0.1321, allocations: 304.1 kB / 370.1 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.1324, allocations: 137.6 kB / 370.2 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001686/0.1325, allocations: 166.6 kB / 370.4 MB, free: 292 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.1326, allocations: 38.94 kB / 370.4 MB, free: 244 kB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 3.316e-06/0.1326, allocations: 3.984 kB / 370.4 MB, free: 240 kB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.1714/0.304, allocations: 1.733 MB / 372.1 MB, free: 25.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.283e-05/0.3041, allocations: 60.62 kB / 372.2 MB, free: 25.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007588/0.3048, allocations: 0.5331 MB / 372.7 MB, free: 25.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.3049, allocations: 35.77 kB / 372.8 MB, free: 25.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002796/0.3052, allocations: 483.2 kB / 373.2 MB, free: 24.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.3053, allocations: 211.8 kB / 373.5 MB, free: 24.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/0.3055, allocations: 139.2 kB / 373.6 MB, free: 24.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.3056, allocations: 381.3 kB / 374 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003186/0.3059, allocations: 159.9 kB / 374.1 MB, free: 24.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004649/0.3064, allocations: 463 kB / 374.6 MB, free: 23.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008649/0.3073, allocations: 0.665 MB / 375.2 MB, free: 23.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.768e-06/0.3073, allocations: 3.594 kB / 375.2 MB, free: 23.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001128/0.3084, allocations: 0.7395 MB / 376 MB, free: 22.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.3084, allocations: 9.469 kB / 376 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.3085, allocations: 9.344 kB / 376 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001765/0.3087, allocations: 47.34 kB / 376 MB, free: 22.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005538/0.3092, allocations: 185.7 kB / 376.2 MB, free: 22.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.3103, allocations: 1.687 MB / 377.9 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003374/0.3107, allocations: 29.5 kB / 377.9 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.353e-05/0.3107, allocations: 38.09 kB / 378 MB, free: 21.1 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.0002716/0.311, allocations: 233.8 kB / 378.2 MB, free: 20.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.424e-05/0.3111, allocations: 68.16 kB / 378.3 MB, free: 20.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000117/0.3112, allocations: 77.89 kB / 378.4 MB, free: 20.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3112, allocations: 9.328 kB / 378.4 MB, free: 20.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.3112, allocations: 2.172 kB / 378.4 MB, free: 20.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3113, allocations: 6.562 kB / 378.4 MB, free: 20.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.3132, allocations: 1.409 MB / 379.8 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.3133, allocations: 2.562 kB / 379.8 MB, free: 19.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005048/0.3138, allocations: 117.2 kB / 379.9 MB, free: 19.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.255e-05/0.3139, allocations: 24.06 kB / 379.9 MB, free: 19.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.283e-05/0.3139, allocations: 20.38 kB / 379.9 MB, free: 19.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006677/0.3146, allocations: 1.375 MB / 381.3 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3146, allocations: 7.281 kB / 381.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.3157, allocations: 0.7838 MB / 382.1 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.3158, allocations: 133.3 kB / 382.2 MB, free: 17.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.381e-05/0.3159, allocations: 15.17 kB / 382.2 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.3161, allocations: 18 kB / 382.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.635e-05/0.3162, allocations: 43.81 kB / 382.3 MB, free: 17.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.3162, allocations: 18.08 kB / 382.3 MB, free: 17.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004245/0.3167, allocations: 363.7 kB / 382.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3167, allocations: 0 / 382.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006917/0.3174, allocations: 138.1 kB / 382.8 MB, free: 17.68 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.0001253/0.3175, allocations: 132.3 kB / 382.9 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009084/0.3184, allocations: 0.5882 MB / 383.5 MB, free: 17.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.3184, allocations: 0 / 383.5 MB, free: 17.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003829/0.3188, allocations: 315.5 kB / 383.8 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006099/0.3194, allocations: 96.06 kB / 383.9 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.322, allocations: 1.841 MB / 385.8 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.3225, allocations: 0.9646 MB / 386.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002598/0.3227, allocations: 87.28 kB / 386.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.3229, allocations: 62.27 kB / 386.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3229, allocations: 0 / 386.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of Templates: time 0.01095/0.3338, allocations: 5.274 MB / 392.2 MB, free: 13.85 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches