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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00179/0.00179, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 186.9 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
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=1000,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=1000,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") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 44.06 kB / 370.9 MB, free: 9.379 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.2664, allocations: 52.18 MB / 423.1 MB, free: 14.86 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006234/0.2727, allocations: 4.617 MB / 427.7 MB, free: 10.22 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002469/0.2751, allocations: 1.341 MB / 429.1 MB, free: 8.879 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0003218/0.2755, allocations: 35.69 kB / 429.1 MB, free: 8.844 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004185/0.2759, allocations: 182.2 kB / 429.3 MB, free: 8.664 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000344/0.2762, allocations: 166.3 kB / 429.4 MB, free: 8.5 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0007668/0.277, allocations: 371.3 kB / 429.8 MB, free: 8.137 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0009997/0.278, allocations: 0.9782 MB / 430.8 MB, free: 7.152 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0004529/0.2784, allocations: 283.4 kB / 431.1 MB, free: 6.855 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004152/0.2789, allocations: 338.6 kB / 431.4 MB, free: 6.523 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003795/0.2792, allocations: 353.9 kB / 431.7 MB, free: 6.176 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.2793, allocations: 72 kB / 431.8 MB, free: 6.105 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002144/0.2796, allocations: 115.9 kB / 431.9 MB, free: 5.992 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.2797, allocations: 171.3 kB / 432.1 MB, free: 5.824 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003736/0.2801, allocations: 433.5 kB / 432.5 MB, free: 5.398 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001166/0.2812, allocations: 1.106 MB / 433.6 MB, free: 4.293 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.2812, allocations: 3.984 kB / 433.6 MB, free: 4.289 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.202e-06/0.2813, allocations: 0 / 433.6 MB, free: 4.289 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.148e-05/0.2813, allocations: 0 / 433.6 MB, free: 4.289 MB / 334.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.001678/0.2829, allocations: 1.093 MB / 434.7 MB, free: 3.16 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.283, allocations: 11.97 kB / 434.7 MB, free: 3.148 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000163/0.2831, allocations: 111.3 kB / 434.8 MB, free: 3.039 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.2841, allocations: 0.5512 MB / 435.4 MB, free: 2.457 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.291e-05/0.2842, allocations: 58 kB / 435.4 MB, free: 2.402 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.2843, allocations: 87.89 kB / 435.5 MB, free: 2.316 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.2858, allocations: 0.852 MB / 436.4 MB, free: 1.352 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 4.941e-05/0.2858, allocations: 15.83 kB / 436.4 MB, free: 1.336 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.505e-05/0.2859, allocations: 36 kB / 436.4 MB, free: 1.301 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.2859, allocations: 24 kB / 436.5 MB, free: 1.277 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009612/0.2869, allocations: 467.3 kB / 436.9 MB, free: 0.8242 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004063/0.2909, allocations: 4.322 MB / 441.2 MB, free: 12.31 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005921/0.2915, allocations: 291.2 kB / 441.5 MB, free: 12.02 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002544/0.2918, allocations: 129.6 kB / 441.6 MB, free: 11.89 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.000104/0.2919, allocations: 12.36 kB / 441.7 MB, free: 11.88 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.2919, allocations: 42.94 kB / 441.7 MB, free: 11.82 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=46): time 1.763e-06/0.2919, allocations: 0 / 441.7 MB, free: 11.82 MB / 350.1 MB
Notification: Performance of matching and sorting (n=57): time 0.003383/0.2953, allocations: 1.589 MB / 443.3 MB, free: 10.18 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.2953, allocations: 63.84 kB / 443.3 MB, free: 10.1 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006298/0.296, allocations: 0.5392 MB / 443.9 MB, free: 9.555 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.558e-05/0.296, allocations: 37.7 kB / 443.9 MB, free: 9.512 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0003671/0.2964, allocations: 491.7 kB / 444.4 MB, free: 9.023 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.2966, allocations: 226.1 kB / 444.6 MB, free: 8.801 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.2967, allocations: 138.6 kB / 444.8 MB, free: 8.66 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002018/0.2969, allocations: 382.8 kB / 445.1 MB, free: 8.277 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003055/0.2973, allocations: 161.9 kB / 445.3 MB, free: 8.117 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005432/0.2978, allocations: 463.2 kB / 445.7 MB, free: 7.531 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0009264/0.2987, allocations: 0.6595 MB / 446.4 MB, free: 6.742 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.2987, allocations: 4 kB / 446.4 MB, free: 6.738 MB / 350.1 MB
Notification: Performance of matching and sorting (n=105) (initialization): time 0.00123/0.3, allocations: 0.7381 MB / 447.1 MB, free: 5.988 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.3, allocations: 12 kB / 447.2 MB, free: 5.977 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.3, allocations: 8.844 kB / 447.2 MB, free: 5.969 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001642/0.3002, allocations: 44.84 kB / 447.2 MB, free: 5.922 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006085/0.3008, allocations: 191.6 kB / 447.4 MB, free: 5.734 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.3023, allocations: 1.582 MB / 449 MB, free: 4.039 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.3026, allocations: 24 kB / 449 MB, free: 4.016 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.241e-05/0.3026, allocations: 43.98 kB / 449 MB, free: 3.973 MB / 350.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.0003067/0.3029, allocations: 225.6 kB / 449.3 MB, free: 3.742 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.303, allocations: 79.5 kB / 449.3 MB, free: 3.664 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001431/0.3032, allocations: 75.08 kB / 449.4 MB, free: 3.586 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3032, allocations: 12.06 kB / 449.4 MB, free: 3.574 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3032, allocations: 3.938 kB / 449.4 MB, free: 3.57 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3032, allocations: 3.984 kB / 449.4 MB, free: 3.566 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.3053, allocations: 1.383 MB / 450.8 MB, free: 2.086 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.3053, allocations: 4 kB / 450.8 MB, free: 2.082 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005093/0.3058, allocations: 115.9 kB / 450.9 MB, free: 1.969 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 8.404e-05/0.3059, allocations: 29.12 kB / 451 MB, free: 1.938 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.276e-05/0.3059, allocations: 16 kB / 451 MB, free: 1.922 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001016/0.3069, allocations: 1.272 MB / 452.3 MB, free: 0.5352 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.3069, allocations: 4 kB / 452.3 MB, free: 0.5312 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.308, allocations: 0.7842 MB / 453 MB, free: 15.69 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.3081, allocations: 63.53 kB / 453.1 MB, free: 15.63 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.062e-05/0.3082, allocations: 16 kB / 453.1 MB, free: 15.61 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.3084, allocations: 15.98 kB / 453.1 MB, free: 15.6 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.655e-05/0.3085, allocations: 43.91 kB / 453.2 MB, free: 15.55 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.628e-05/0.3085, allocations: 16 kB / 453.2 MB, free: 15.54 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0004129/0.3089, allocations: 363.1 kB / 453.5 MB, free: 15.19 MB / 366.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.3089, allocations: 4 kB / 453.5 MB, free: 15.19 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.000629/0.3096, allocations: 140 kB / 453.7 MB, free: 15.05 MB / 366.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.0001453/0.3097, allocations: 115.1 kB / 453.8 MB, free: 14.93 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.001007/0.3107, allocations: 0.565 MB / 454.4 MB, free: 14.35 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3107, allocations: 0 / 454.4 MB, free: 14.35 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0004385/0.3112, allocations: 310.8 kB / 454.7 MB, free: 14.04 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000628/0.3118, allocations: 106.8 kB / 454.8 MB, free: 13.93 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002869/0.3147, allocations: 1.878 MB / 456.6 MB, free: 11.99 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006107/0.3153, allocations: 0.9613 MB / 457.6 MB, free: 11 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0002471/0.3155, allocations: 85.94 kB / 457.7 MB, free: 10.91 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.3156, allocations: 59.42 kB / 457.8 MB, free: 10.86 MB / 366.1 MB
Notification: Performance of SimCode: time 5.11e-07/0.3156, allocations: 0 / 457.8 MB, free: 10.86 MB / 366.1 MB
Notification: Performance of Templates: time 0.01288/0.3285, allocations: 5.891 MB / 463.6 MB, free: 4.992 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile [Timeout 660]
(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  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.579544201493263]