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.001748/0.001748, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.002226/0.002226, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.404/1.404, allocations: 230.6 MB / 257.5 MB, free: 8.035 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.00163/0.00163, allocations: 55.89 kB / 377.8 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2537, allocations: 53.37 MB / 431.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006469/0.2602, allocations: 4.617 MB / 435.8 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002782/0.263, allocations: 1.422 MB / 437.2 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005532/0.2636, allocations: 35.69 kB / 437.2 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005252/0.2641, allocations: 178.2 kB / 437.4 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005562/0.2646, allocations: 162.4 kB / 437.5 MB, free: 460 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009192/0.2656, allocations: 395.2 kB / 437.9 MB, free: 64 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001325/0.2669, allocations: 0.9782 MB / 438.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000537/0.2674, allocations: 279.5 kB / 439.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005604/0.268, allocations: 354.5 kB / 439.5 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004101/0.2684, allocations: 338 kB / 439.9 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.696e-05/0.2685, allocations: 72 kB / 439.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002267/0.2687, allocations: 127.9 kB / 440 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.2688, allocations: 175.3 kB / 440.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003913/0.2692, allocations: 429.5 kB / 440.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.2705, allocations: 1.113 MB / 441.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2705, allocations: 0 / 441.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2705, allocations: 0 / 441.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.371e-05/0.2705, allocations: 4 kB / 441.8 MB, free: 12.2 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.001731/0.2723, allocations: 1.093 MB / 442.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.2723, allocations: 12.03 kB / 442.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001439/0.2725, allocations: 122.9 kB / 443 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002634/0.2727, allocations: 119.3 kB / 443.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.2738, allocations: 0.5628 MB / 443.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.214e-05/0.2738, allocations: 58 kB / 443.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.2739, allocations: 83.95 kB / 443.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.2753, allocations: 0.8481 MB / 444.6 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.319e-05/0.2754, allocations: 11.98 kB / 444.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.979e-05/0.2754, allocations: 36 kB / 444.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.083e-05/0.2754, allocations: 23.94 kB / 444.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000926/0.2764, allocations: 471.3 kB / 445.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004206/0.2806, allocations: 4.322 MB / 449.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006075/0.2812, allocations: 292.6 kB / 449.8 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002455/0.2814, allocations: 133.5 kB / 449.9 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/0.2815, allocations: 16.38 kB / 449.9 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.2816, allocations: 46.92 kB / 450 MB, free: 3.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.023e-06/0.2816, allocations: 0 / 450 MB, free: 3.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003379/0.285, allocations: 1.591 MB / 451.6 MB, free: 1.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.457e-05/0.285, allocations: 67.84 kB / 451.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006544/0.2857, allocations: 0.5354 MB / 452.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.196e-05/0.2857, allocations: 33.7 kB / 452.2 MB, free: 1.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003852/0.2861, allocations: 487.8 kB / 452.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/0.2863, allocations: 222.1 kB / 452.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001925/0.2865, allocations: 146.6 kB / 453 MB, free: 440 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.2867, allocations: 382.8 kB / 453.4 MB, free: 48 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003251/0.287, allocations: 165.9 kB / 453.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000544/0.2875, allocations: 455.2 kB / 454 MB, free: 15.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008925/0.2884, allocations: 0.6595 MB / 454.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.2884, allocations: 0 / 454.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001224/0.2897, allocations: 0.7382 MB / 455.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.2897, allocations: 15.98 kB / 455.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.2897, allocations: 8 kB / 455.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001699/0.2899, allocations: 49.59 kB / 455.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005948/0.2905, allocations: 183.7 kB / 455.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001566/0.292, allocations: 1.586 MB / 457.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003371/0.2924, allocations: 31.94 kB / 457.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.874e-05/0.2924, allocations: 36 kB / 457.3 MB, free: 11.75 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.0003349/0.2928, allocations: 233.5 kB / 457.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.2929, allocations: 79.45 kB / 457.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001366/0.293, allocations: 75.08 kB / 457.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.293, allocations: 4 kB / 457.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.293, allocations: 4.062 kB / 457.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.862e-06/0.293, allocations: 7.984 kB / 457.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002054/0.2951, allocations: 1.37 MB / 459.1 MB, free: 9.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.2951, allocations: 4 kB / 459.1 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004851/0.2956, allocations: 111.9 kB / 459.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.647e-05/0.2957, allocations: 29.14 kB / 459.2 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.2957, allocations: 19.98 kB / 459.2 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.2968, allocations: 1.279 MB / 460.5 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.2968, allocations: 4 kB / 460.5 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.298, allocations: 0.7803 MB / 461.3 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.2981, allocations: 67.53 kB / 461.4 MB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.516e-05/0.2982, allocations: 16 kB / 461.4 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.2984, allocations: 12.19 kB / 461.4 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.544e-05/0.2985, allocations: 51.89 kB / 461.5 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.2985, allocations: 15.94 kB / 461.5 MB, free: 7.312 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004362/0.2989, allocations: 367.1 kB / 461.8 MB, free: 6.961 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2989, allocations: 4 kB / 461.8 MB, free: 6.957 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007486/0.2997, allocations: 140 kB / 462 MB, free: 6.82 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.001481/0.3012, allocations: 1.336 MB / 463.3 MB, free: 5.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.3022, allocations: 0.5721 MB / 463.9 MB, free: 4.848 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3022, allocations: 0 / 463.9 MB, free: 4.848 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004221/0.3026, allocations: 295.6 kB / 464.2 MB, free: 4.547 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006319/0.3033, allocations: 105.6 kB / 464.3 MB, free: 4.445 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009292/0.3126, allocations: 6.08 MB / 470.3 MB, free: 13.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007184/0.3133, allocations: 0.9652 MB / 471.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003053/0.3136, allocations: 94 kB / 471.4 MB, free: 12.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004578/0.314, allocations: 323.3 kB / 471.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of SimCode: time 1.613e-06/0.3141, allocations: 0 / 471.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05187/0.3659, allocations: 12.5 MB / 484.2 MB, free: 236 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.62, allocations: 7.359 kB / 484.2 MB, free: 232 kB / 382.1 MB " [Timeout remaining time 647] (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.970986735075712]