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.001238/0.001238, allocations: 108.6 kB / 21.22 MB, free: 0.7344 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.001531/0.001531, allocations: 183.5 kB / 24.5 MB, free: 4.09 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.333/1.333, allocations: 225.6 MB / 253.3 MB, free: 13.05 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 47.94 kB / 371.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2341, allocations: 52.19 MB / 423.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005951/0.24, allocations: 4.616 MB / 428 MB, free: 10 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002725/0.2427, allocations: 1.345 MB / 429.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003915/0.2431, allocations: 35.69 kB / 429.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004351/0.2436, allocations: 174.2 kB / 429.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003691/0.2439, allocations: 170.3 kB / 429.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000829/0.2448, allocations: 375.3 kB / 430.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.2458, allocations: 0.9666 MB / 431.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004482/0.2462, allocations: 291.1 kB / 431.4 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003971/0.2466, allocations: 342.5 kB / 431.7 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000394/0.247, allocations: 346 kB / 432 MB, free: 5.965 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.743e-05/0.2471, allocations: 75.94 kB / 432.1 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.2473, allocations: 123.9 kB / 432.2 MB, free: 5.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001563/0.2475, allocations: 171.3 kB / 432.4 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003763/0.2479, allocations: 421.5 kB / 432.8 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001236/0.2491, allocations: 1.113 MB / 433.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2491, allocations: 0 / 433.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2491, allocations: 0 / 433.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.2491, allocations: 0 / 433.9 MB, free: 4.074 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.001551/0.2507, allocations: 1.093 MB / 435 MB, free: 2.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.2507, allocations: 12.03 kB / 435 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.473e-05/0.2507, allocations: 25.94 kB / 435 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001236/0.2509, allocations: 126.9 kB / 435.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001493/0.251, allocations: 111.3 kB / 435.3 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009326/0.2519, allocations: 0.5434 MB / 435.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.187e-05/0.252, allocations: 62 kB / 435.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.2521, allocations: 83.89 kB / 436 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.2534, allocations: 0.8521 MB / 436.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.672e-05/0.2535, allocations: 11.89 kB / 436.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.642e-05/0.2535, allocations: 36 kB / 436.9 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.2535, allocations: 20 kB / 436.9 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008538/0.2544, allocations: 471.3 kB / 437.3 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003826/0.2582, allocations: 4.322 MB / 441.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005722/0.2588, allocations: 283.4 kB / 441.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002305/0.259, allocations: 137.3 kB / 442.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.2591, allocations: 20.36 kB / 442.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.2592, allocations: 34.94 kB / 442.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.723e-06/0.2592, allocations: 0 / 442.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003196/0.2624, allocations: 1.596 MB / 443.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.2624, allocations: 59.84 kB / 443.8 MB, free: 9.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005857/0.263, allocations: 0.5353 MB / 444.3 MB, free: 9.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.097e-05/0.2631, allocations: 33.7 kB / 444.3 MB, free: 9.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003544/0.2634, allocations: 491.8 kB / 444.8 MB, free: 8.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000168/0.2636, allocations: 226 kB / 445.1 MB, free: 8.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.2638, allocations: 150.6 kB / 445.2 MB, free: 8.289 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.2639, allocations: 374.8 kB / 445.6 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/0.2642, allocations: 161.9 kB / 445.7 MB, free: 7.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000524/0.2648, allocations: 463.1 kB / 446.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008919/0.2657, allocations: 0.6712 MB / 446.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2657, allocations: 3.938 kB / 446.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001151/0.2668, allocations: 0.7419 MB / 447.6 MB, free: 5.609 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.2668, allocations: 12.97 kB / 447.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.2668, allocations: 8 kB / 447.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001591/0.267, allocations: 52.84 kB / 447.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005873/0.2676, allocations: 179.7 kB / 447.8 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.269, allocations: 1.585 MB / 449.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.2693, allocations: 28 kB / 449.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.07e-05/0.2694, allocations: 36.19 kB / 449.5 MB, free: 3.598 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.0002938/0.2697, allocations: 229.6 kB / 449.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.513e-05/0.2698, allocations: 75.47 kB / 449.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001264/0.2699, allocations: 83.14 kB / 449.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.2699, allocations: 4 kB / 449.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.2699, allocations: 0 / 449.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.2699, allocations: 3.984 kB / 449.9 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001939/0.2718, allocations: 1.395 MB / 451.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.2718, allocations: 0 / 451.3 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004734/0.2723, allocations: 112.2 kB / 451.4 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.371e-05/0.2724, allocations: 28.84 kB / 451.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.02e-05/0.2724, allocations: 19.94 kB / 451.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009776/0.2734, allocations: 1.272 MB / 452.7 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.2734, allocations: 4 kB / 452.7 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.2745, allocations: 0.7765 MB / 453.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.783e-05/0.2746, allocations: 59.53 kB / 453.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.877e-05/0.2746, allocations: 19.98 kB / 453.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.2748, allocations: 12 kB / 453.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.239e-05/0.2749, allocations: 43.91 kB / 453.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.2749, allocations: 19.98 kB / 453.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003868/0.2753, allocations: 367.1 kB / 454 MB, free: 14.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2753, allocations: 0 / 454 MB, free: 14.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005862/0.2759, allocations: 136 kB / 454.1 MB, free: 14.68 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.001391/0.2773, allocations: 1.34 MB / 455.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009146/0.2782, allocations: 0.5636 MB / 456 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2782, allocations: 0 / 456 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004109/0.2786, allocations: 300.1 kB / 456.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000572/0.2792, allocations: 111.6 kB / 456.4 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007636/0.2868, allocations: 6.076 MB / 462.5 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006195/0.2874, allocations: 0.9652 MB / 463.5 MB, free: 4.809 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002385/0.2877, allocations: 85.92 kB / 463.6 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003964/0.2881, allocations: 327.3 kB / 463.9 MB, free: 4.402 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.2881, allocations: 0 / 463.9 MB, free: 4.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04091/0.329, allocations: 12.49 MB / 476.4 MB, free: 8.109 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.11, allocations: 6.984 kB / 476.4 MB, free: 8.105 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.42345603503054]