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.001457/0.001457, allocations: 113.3 kB / 18.4 MB, free: 4.699 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.001418/0.001418, allocations: 189.3 kB / 19.33 MB, free: 3.781 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.649/1.649, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001875/0.001875, allocations: 52.39 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1186, allocations: 46.62 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.007616/0.1262, allocations: 4.565 MB / 380.4 MB, free: 0 / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2133/0.3396, allocations: 1.362 MB / 381.7 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004519/0.3401, allocations: 24.16 kB / 381.8 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003732/0.3405, allocations: 180.6 kB / 381.9 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003423/0.3409, allocations: 158.5 kB / 382.1 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008951/0.3418, allocations: 371.4 kB / 382.5 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00124/0.343, allocations: 0.9766 MB / 383.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007971/0.3438, allocations: 425.7 kB / 383.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005601/0.3444, allocations: 330.4 kB / 384.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003772/0.3448, allocations: 347.1 kB / 384.5 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.3449, allocations: 72.47 kB / 384.6 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000276/0.3452, allocations: 115.7 kB / 384.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.3453, allocations: 174.8 kB / 384.9 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003439/0.3457, allocations: 425.5 kB / 385.3 MB, free: 8.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.347, allocations: 1.098 MB / 386.4 MB, free: 7.922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3471, allocations: 1.062 kB / 386.4 MB, free: 7.922 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3471, allocations: 5.5 kB / 386.4 MB, free: 7.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.519e-05/0.3471, allocations: 0 / 386.4 MB, free: 7.918 MB / 318.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.001631/0.3487, allocations: 1.147 MB / 387.5 MB, free: 7.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3488, allocations: 8.812 kB / 387.5 MB, free: 7.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.3489, allocations: 101.5 kB / 387.6 MB, free: 7.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009422/0.3499, allocations: 0.6258 MB / 388.3 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.806e-05/0.35, allocations: 61.94 kB / 388.3 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.3501, allocations: 86.17 kB / 388.4 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.3513, allocations: 0.8459 MB / 389.2 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.032e-05/0.3514, allocations: 13.77 kB / 389.3 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.952e-05/0.3514, allocations: 37 kB / 389.3 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.826e-05/0.3515, allocations: 22.17 kB / 389.3 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008919/0.3524, allocations: 474.2 kB / 389.8 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003283/0.3557, allocations: 4.361 MB / 394.1 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006098/0.3563, allocations: 313.6 kB / 394.5 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.3566, allocations: 141.1 kB / 394.6 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001639/0.3567, allocations: 171.4 kB / 394.8 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.3568, allocations: 38.73 kB / 394.8 MB, free: 1.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 3.497e-06/0.3568, allocations: 3.984 kB / 394.8 MB, free: 1.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.003352/0.3601, allocations: 1.733 MB / 396.5 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.3602, allocations: 65.75 kB / 396.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006826/0.3609, allocations: 0.5306 MB / 397.1 MB, free: 396 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.3609, allocations: 36.92 kB / 397.2 MB, free: 356 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002937/0.3612, allocations: 480.5 kB / 397.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.3614, allocations: 215.8 kB / 397.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002021/0.3616, allocations: 136.5 kB / 398 MB, free: 15.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.3618, allocations: 386.6 kB / 398.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003041/0.3621, allocations: 159.1 kB / 398.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005486/0.3627, allocations: 457.3 kB / 399 MB, free: 14.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000847/0.3635, allocations: 0.669 MB / 399.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3635, allocations: 3.656 kB / 399.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001246/0.3648, allocations: 0.7365 MB / 400.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.3648, allocations: 13.2 kB / 400.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.3648, allocations: 9.562 kB / 400.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001773/0.365, allocations: 47.55 kB / 400.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005607/0.3656, allocations: 186 kB / 400.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.3671, allocations: 1.689 MB / 402.3 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003629/0.3675, allocations: 30.41 kB / 402.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.3675, allocations: 39.62 kB / 402.4 MB, free: 12.29 MB / 334.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.0003377/0.3679, allocations: 231.5 kB / 402.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.368, allocations: 74.05 kB / 402.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.3681, allocations: 76.59 kB / 402.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.3681, allocations: 5.25 kB / 402.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.3682, allocations: 2.094 kB / 402.8 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3682, allocations: 3.531 kB / 402.8 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002206/0.3704, allocations: 1.41 MB / 404.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.3704, allocations: 3.266 kB / 404.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004761/0.3709, allocations: 112.6 kB / 404.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.679e-05/0.371, allocations: 29.36 kB / 404.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.323e-05/0.371, allocations: 13.55 kB / 404.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009967/0.372, allocations: 1.372 MB / 405.7 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.372, allocations: 2.75 kB / 405.7 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.3732, allocations: 0.7731 MB / 406.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.3733, allocations: 141.7 kB / 406.6 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.143e-05/0.3734, allocations: 19.78 kB / 406.6 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.3736, allocations: 13.66 kB / 406.6 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.292e-05/0.3737, allocations: 47.56 kB / 406.7 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.294e-05/0.3737, allocations: 22.39 kB / 406.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005033/0.3743, allocations: 360.5 kB / 407.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3743, allocations: 0 / 407.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008405/0.3751, allocations: 141.2 kB / 407.2 MB, free: 8.863 MB / 334.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.0001452/0.3753, allocations: 115.2 kB / 407.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.3764, allocations: 0.592 MB / 407.9 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.3764, allocations: 5.031 kB / 407.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005861/0.377, allocations: 312.2 kB / 408.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007759/0.3778, allocations: 105.3 kB / 408.3 MB, free: 8.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004385/0.3822, allocations: 1.887 MB / 410.2 MB, free: 6.957 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.3833, allocations: 0.9578 MB / 411.2 MB, free: 6.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002807/0.3836, allocations: 71.84 kB / 411.2 MB, free: 6.234 MB / 334.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3836, allocations: 0 / 411.2 MB, free: 6.234 MB / 334.1 MB Notification: Performance of Templates: time 0.03079/0.4144, allocations: 12.43 MB / 423.7 MB, free: 13.52 MB / 350.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","/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