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.001338/0.001338, allocations: 112 kB / 20.43 MB, free: 1.457 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.00144/0.00144, allocations: 181.3 kB / 23.72 MB, free: 4.699 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.402/1.402, allocations: 225.6 MB / 252.5 MB, free: 13.02 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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 55.86 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.245, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.00672/0.2518, allocations: 4.61 MB / 427.2 MB, free: 9.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0029/0.2547, allocations: 1.349 MB / 428.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007209/0.2554, allocations: 31.69 kB / 428.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000578/0.256, allocations: 178.2 kB / 428.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006892/0.2566, allocations: 166.3 kB / 428.9 MB, free: 8.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.2577, allocations: 379.3 kB / 429.3 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001417/0.2591, allocations: 0.9665 MB / 430.3 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005739/0.2597, allocations: 287.4 kB / 430.6 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005651/0.2602, allocations: 346.5 kB / 430.9 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005116/0.2607, allocations: 342 kB / 431.2 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001458/0.2609, allocations: 72 kB / 431.3 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002655/0.2611, allocations: 119.9 kB / 431.4 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.2613, allocations: 171.3 kB / 431.6 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004792/0.2618, allocations: 425.5 kB / 432 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001382/0.2632, allocations: 1.116 MB / 433.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2632, allocations: 0 / 433.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2632, allocations: 0 / 433.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.54e-05/0.2632, allocations: 4 kB / 433.1 MB, free: 4.035 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.002295/0.2655, allocations: 1.093 MB / 434.2 MB, free: 2.906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.152e-05/0.2656, allocations: 12.03 kB / 434.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001929/0.2658, allocations: 127 kB / 434.4 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002227/0.266, allocations: 107.3 kB / 434.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.2672, allocations: 0.5511 MB / 435 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.159e-05/0.2673, allocations: 62 kB / 435.1 MB, free: 2.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.2674, allocations: 79.95 kB / 435.2 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.269, allocations: 0.8481 MB / 436 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.989e-05/0.2691, allocations: 19.89 kB / 436 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.726e-05/0.2691, allocations: 32 kB / 436.1 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.2692, allocations: 20 kB / 436.1 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009856/0.2702, allocations: 475.3 kB / 436.5 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004677/0.2748, allocations: 4.318 MB / 440.9 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006598/0.2755, allocations: 287.5 kB / 441.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.2757, allocations: 133.3 kB / 441.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001297/0.2759, allocations: 16.36 kB / 441.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/0.2759, allocations: 42.92 kB / 441.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.275e-06/0.2759, allocations: 0 / 441.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.0036/0.2795, allocations: 1.592 MB / 442.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.2796, allocations: 63.84 kB / 443 MB, free: 9.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007565/0.2803, allocations: 0.5392 MB / 443.5 MB, free: 9.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.2804, allocations: 33.64 kB / 443.5 MB, free: 9.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004259/0.2808, allocations: 499.8 kB / 444 MB, free: 8.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.281, allocations: 218.1 kB / 444.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001976/0.2812, allocations: 142.6 kB / 444.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002229/0.2814, allocations: 378.8 kB / 444.8 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003348/0.2818, allocations: 165.9 kB / 444.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000559/0.2823, allocations: 459.1 kB / 445.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009914/0.2833, allocations: 0.6712 MB / 446 MB, free: 6.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.2833, allocations: 4 kB / 446 MB, free: 6.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001319/0.2846, allocations: 0.7388 MB / 446.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.2847, allocations: 15.34 kB / 446.8 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.2847, allocations: 12 kB / 446.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001787/0.2849, allocations: 44.84 kB / 446.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005907/0.2855, allocations: 191.6 kB / 447 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.287, allocations: 1.574 MB / 448.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003669/0.2874, allocations: 28.17 kB / 448.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.153e-05/0.2875, allocations: 40 kB / 448.7 MB, free: 3.586 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.0003621/0.2878, allocations: 229.6 kB / 448.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.2879, allocations: 87.47 kB / 449 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001355/0.2881, allocations: 71.08 kB / 449.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.2881, allocations: 8 kB / 449.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.2881, allocations: 0 / 449.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.2881, allocations: 3.984 kB / 449.1 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002156/0.2903, allocations: 1.388 MB / 450.5 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.2903, allocations: 8.031 kB / 450.5 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004929/0.2908, allocations: 111.9 kB / 450.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.951e-05/0.2909, allocations: 28.83 kB / 450.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.467e-05/0.2909, allocations: 15.98 kB / 450.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.292, allocations: 1.268 MB / 451.9 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.292, allocations: 4 kB / 451.9 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.2932, allocations: 0.7843 MB / 452.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.2934, allocations: 59.53 kB / 452.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.497e-05/0.2934, allocations: 12 kB / 452.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.2936, allocations: 19.98 kB / 452.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.723e-05/0.2937, allocations: 43.91 kB / 452.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-05/0.2937, allocations: 20 kB / 452.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004566/0.2942, allocations: 363.1 kB / 453.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2942, allocations: 0 / 453.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007264/0.2949, allocations: 140 kB / 453.3 MB, free: 14.67 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.001518/0.2964, allocations: 1.332 MB / 454.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.2976, allocations: 0.5684 MB / 455.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.2976, allocations: 4 kB / 455.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004433/0.298, allocations: 298.8 kB / 455.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006821/0.2987, allocations: 102.7 kB / 455.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008838/0.3075, allocations: 6.076 MB / 461.7 MB, free: 5.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006924/0.3082, allocations: 0.9652 MB / 462.7 MB, free: 4.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000289/0.3085, allocations: 89.91 kB / 462.7 MB, free: 4.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004171/0.3089, allocations: 323.3 kB / 463.1 MB, free: 4.395 MB / 366.1 MB Notification: Performance of SimCode: time 1.353e-06/0.3089, allocations: 0 / 463.1 MB, free: 4.395 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05136/0.3603, allocations: 12.46 MB / 475.5 MB, free: 8.109 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.21, allocations: 2.406 kB / 475.5 MB, free: 8.109 MB / 382.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.510841866023839]