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.001295/0.001295, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001352/0.001352, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.351/1.351, allocations: 230.6 MB / 258.3 MB, free: 8.012 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 55.92 kB / 378.6 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2447, allocations: 53.35 MB / 431.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005957/0.2506, allocations: 4.63 MB / 436.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002835/0.2535, allocations: 1.411 MB / 438 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000356/0.2538, allocations: 35.69 kB / 438 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004002/0.2542, allocations: 178.2 kB / 438.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003477/0.2546, allocations: 170.3 kB / 438.3 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000904/0.2555, allocations: 383.2 kB / 438.7 MB, free: 52 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001145/0.2566, allocations: 0.9821 MB / 439.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004957/0.2571, allocations: 291.5 kB / 440 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004513/0.2576, allocations: 346.6 kB / 440.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003809/0.2579, allocations: 349.9 kB / 440.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.258, allocations: 72 kB / 440.7 MB, free: 14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.2583, allocations: 116 kB / 440.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.2584, allocations: 175.3 kB / 441 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003595/0.2588, allocations: 429.5 kB / 441.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.26, allocations: 1.113 MB / 442.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.26, allocations: 0 / 442.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.26, allocations: 0 / 442.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.26, allocations: 4 kB / 442.5 MB, free: 12.18 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.001719/0.2617, allocations: 1.096 MB / 443.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.2618, allocations: 16.03 kB / 443.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.222e-05/0.2618, allocations: 22 kB / 443.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000127/0.2619, allocations: 123 kB / 443.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002798/0.2622, allocations: 119.3 kB / 443.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.2633, allocations: 0.5589 MB / 444.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.075e-05/0.2633, allocations: 62 kB / 444.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.2635, allocations: 87.89 kB / 444.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.2648, allocations: 0.8404 MB / 445.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/0.2648, allocations: 7.938 kB / 445.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.78e-05/0.2649, allocations: 32 kB / 445.5 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.471e-05/0.2649, allocations: 24 kB / 445.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008923/0.2658, allocations: 475.2 kB / 446 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00397/0.2698, allocations: 4.33 MB / 450.3 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005622/0.2704, allocations: 288.7 kB / 450.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/0.2706, allocations: 129.6 kB / 450.7 MB, free: 3.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001237/0.2707, allocations: 12.36 kB / 450.7 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.2707, allocations: 38.94 kB / 450.8 MB, free: 3.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.783e-06/0.2708, allocations: 0 / 450.8 MB, free: 3.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003197/0.2739, allocations: 1.595 MB / 452.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.274, allocations: 67.78 kB / 452.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006199/0.2746, allocations: 0.5432 MB / 453 MB, free: 1.277 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.266e-05/0.2746, allocations: 33.7 kB / 453 MB, free: 1.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003564/0.275, allocations: 495.8 kB / 453.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000166/0.2752, allocations: 218.1 kB / 453.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.2754, allocations: 138.6 kB / 453.8 MB, free: 400 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.2755, allocations: 382.8 kB / 454.2 MB, free: 8 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003012/0.2758, allocations: 157.9 kB / 454.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005315/0.2764, allocations: 459.2 kB / 454.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008599/0.2772, allocations: 0.6673 MB / 455.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2772, allocations: 0 / 455.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001148/0.2784, allocations: 0.7465 MB / 456.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.2784, allocations: 8 kB / 456.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.2784, allocations: 8 kB / 456.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001685/0.2786, allocations: 48.84 kB / 456.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005459/0.2791, allocations: 183.7 kB / 456.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001452/0.2806, allocations: 1.586 MB / 458.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.2809, allocations: 27.98 kB / 458.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.755e-05/0.2809, allocations: 36 kB / 458.1 MB, free: 11.71 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.0002996/0.2812, allocations: 233.6 kB / 458.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.2813, allocations: 79.47 kB / 458.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001331/0.2814, allocations: 75.08 kB / 458.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.2814, allocations: 7.938 kB / 458.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2815, allocations: 4 kB / 458.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2815, allocations: 3.984 kB / 458.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001992/0.2835, allocations: 1.374 MB / 459.9 MB, free: 9.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.2835, allocations: 7.938 kB / 459.9 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004706/0.2839, allocations: 115.8 kB / 460 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.006e-05/0.284, allocations: 24.97 kB / 460 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.161e-05/0.284, allocations: 16 kB / 460.1 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009952/0.285, allocations: 1.275 MB / 461.3 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.285, allocations: 4 kB / 461.3 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.2861, allocations: 0.7843 MB / 462.1 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.2862, allocations: 59.53 kB / 462.2 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.694e-05/0.2863, allocations: 19.98 kB / 462.2 MB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.2865, allocations: 12 kB / 462.2 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.674e-05/0.2866, allocations: 43.88 kB / 462.2 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.854e-05/0.2866, allocations: 19.98 kB / 462.3 MB, free: 7.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004143/0.287, allocations: 363.1 kB / 462.6 MB, free: 6.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.287, allocations: 0 / 462.6 MB, free: 6.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006544/0.2877, allocations: 140.2 kB / 462.8 MB, free: 6.793 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.001379/0.2891, allocations: 1.345 MB / 464.1 MB, free: 5.395 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009579/0.29, allocations: 0.5764 MB / 464.7 MB, free: 4.809 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.29, allocations: 128 / 464.7 MB, free: 4.809 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004044/0.2904, allocations: 298.5 kB / 465 MB, free: 4.504 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005896/0.291, allocations: 94.19 kB / 465.1 MB, free: 4.418 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007843/0.2989, allocations: 6.096 MB / 471.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006212/0.2995, allocations: 0.9613 MB / 472.1 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000249/0.2997, allocations: 86.02 kB / 472.2 MB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004076/0.3001, allocations: 327.3 kB / 472.5 MB, free: 12.5 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3001, allocations: 0 / 472.5 MB, free: 12.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04115/0.3413, allocations: 12.54 MB / 485.1 MB, free: 172 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.2, allocations: 7.344 kB / 485.1 MB, free: 168 kB / 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.538697678013705]