Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00165/0.00165, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002051/0.002051, allocations: 208.2 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.414/1.414, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 51.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2364, allocations: 53.36 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.00573/0.2422, allocations: 4.109 MB / 435.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002725/0.2449, allocations: 1.364 MB / 436.5 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004401/0.2453, allocations: 35.69 kB / 436.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000412/0.2458, allocations: 178.2 kB / 436.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003905/0.2461, allocations: 170.3 kB / 436.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008393/0.247, allocations: 375.4 kB / 437.3 MB, free: 432 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.2482, allocations: 0.9783 MB / 438.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004818/0.2487, allocations: 291.1 kB / 438.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005433/0.2492, allocations: 354.5 kB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004042/0.2496, allocations: 342 kB / 439.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.2497, allocations: 72 kB / 439.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002308/0.2499, allocations: 123.9 kB / 439.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001531/0.2501, allocations: 179.3 kB / 439.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003071/0.2504, allocations: 322.2 kB / 439.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.2516, allocations: 1.118 MB / 441 MB, free: 12.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2516, allocations: 0 / 441 MB, free: 12.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2516, allocations: 0 / 441 MB, free: 12.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.2516, allocations: 8 kB / 441 MB, free: 12.64 MB / 350.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.001651/0.2533, allocations: 1.096 MB / 442.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.2533, allocations: 12.03 kB / 442.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001459/0.2535, allocations: 126.9 kB / 442.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002697/0.2538, allocations: 123.2 kB / 442.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.2548, allocations: 0.555 MB / 442.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.227e-05/0.2549, allocations: 58 kB / 443 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.255, allocations: 83.95 kB / 443.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.2564, allocations: 0.8481 MB / 443.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.787e-05/0.2564, allocations: 7.938 kB / 443.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.565e-05/0.2565, allocations: 43.98 kB / 444 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.2565, allocations: 20 kB / 444 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009046/0.2574, allocations: 471.3 kB / 444.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004087/0.2615, allocations: 4.174 MB / 448.6 MB, free: 4.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005961/0.2621, allocations: 289.4 kB / 448.9 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000235/0.2623, allocations: 133.5 kB / 449 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.2624, allocations: 16.36 kB / 449.1 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.2625, allocations: 38.94 kB / 449.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.275e-06/0.2625, allocations: 4 kB / 449.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003351/0.2658, allocations: 1.591 MB / 450.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.2659, allocations: 67.83 kB / 450.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006356/0.2665, allocations: 0.5431 MB / 451.3 MB, free: 1.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.446e-05/0.2666, allocations: 33.7 kB / 451.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003561/0.2669, allocations: 0.4919 MB / 451.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.2671, allocations: 222.1 kB / 452 MB, free: 1.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001791/0.2673, allocations: 138.6 kB / 452.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.2675, allocations: 378.8 kB / 452.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002959/0.2678, allocations: 161.9 kB / 452.7 MB, free: 476 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005349/0.2683, allocations: 455.2 kB / 453.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008666/0.2692, allocations: 0.6673 MB / 453.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.2692, allocations: 4 kB / 453.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001207/0.2704, allocations: 0.7466 MB / 454.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.2704, allocations: 8 kB / 454.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.751e-05/0.2704, allocations: 12 kB / 454.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001737/0.2706, allocations: 48.97 kB / 454.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005944/0.2712, allocations: 183.7 kB / 454.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.2727, allocations: 1.57 MB / 456.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003318/0.273, allocations: 27.98 kB / 456.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.437e-05/0.2731, allocations: 39.94 kB / 456.5 MB, free: 12.33 MB / 366.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.0003232/0.2734, allocations: 240.5 kB / 456.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.2735, allocations: 79.47 kB / 456.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.2736, allocations: 75.08 kB / 456.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.2736, allocations: 8 kB / 456.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2736, allocations: 0 / 456.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.2736, allocations: 3.984 kB / 456.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002012/0.2756, allocations: 1.281 MB / 458.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.2757, allocations: 0 / 458.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000516/0.2762, allocations: 123.9 kB / 458.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.923e-05/0.2763, allocations: 20.86 kB / 458.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.751e-05/0.2763, allocations: 16 kB / 458.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/0.2773, allocations: 1.264 MB / 459.6 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.2773, allocations: 3.938 kB / 459.6 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.2785, allocations: 0.7919 MB / 460.3 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.2786, allocations: 59.53 kB / 460.4 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.261e-05/0.2786, allocations: 16 kB / 460.4 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/0.2788, allocations: 16.11 kB / 460.4 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.89e-05/0.2789, allocations: 47.91 kB / 460.5 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.791e-05/0.279, allocations: 16 kB / 460.5 MB, free: 8.012 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004404/0.2794, allocations: 367.1 kB / 460.9 MB, free: 7.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2794, allocations: 0 / 460.9 MB, free: 7.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006766/0.2801, allocations: 140 kB / 461 MB, free: 7.523 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.001641/0.2817, allocations: 1.332 MB / 462.3 MB, free: 6.133 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.2827, allocations: 0.5647 MB / 462.9 MB, free: 5.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2827, allocations: 3.938 kB / 462.9 MB, free: 5.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004146/0.2832, allocations: 298.5 kB / 463.2 MB, free: 5.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006501/0.2838, allocations: 104.4 kB / 463.3 MB, free: 5.148 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00851/0.2923, allocations: 6.081 MB / 469.4 MB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004131/0.2927, allocations: 374.2 kB / 469.7 MB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002895/0.293, allocations: 90.02 kB / 469.8 MB, free: 14.17 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004171/0.2934, allocations: 331.2 kB / 470.1 MB, free: 13.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.2934, allocations: 0 / 470.1 MB, free: 13.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04795/0.3414, allocations: 12.82 MB / 483 MB, free: 1.262 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.69, allocations: 4.062 kB / 483 MB, free: 1.258 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.015917598997476]