Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001236/0.001236, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 210.3 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 230.5 MB / 258.2 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 63.89 kB / 378.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2505, allocations: 53.41 MB / 432 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006125/0.2566, allocations: 4.618 MB / 436.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002673/0.2593, allocations: 1.426 MB / 438 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003096/0.2596, allocations: 27.75 kB / 438 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004011/0.26, allocations: 186.2 kB / 438.2 MB, free: 396 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000323/0.2603, allocations: 162.3 kB / 438.4 MB, free: 232 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007559/0.2611, allocations: 379.3 kB / 438.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001145/0.2622, allocations: 0.9782 MB / 439.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004948/0.2627, allocations: 287.4 kB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005322/0.2633, allocations: 354.5 kB / 440.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003979/0.2637, allocations: 346 kB / 440.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.265e-05/0.2638, allocations: 72 kB / 440.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000224/0.264, allocations: 119.9 kB / 440.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.2641, allocations: 179.3 kB / 441.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003628/0.2645, allocations: 425.5 kB / 441.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001221/0.2657, allocations: 1.117 MB / 442.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.2657, allocations: 0 / 442.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2657, allocations: 0 / 442.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.2657, allocations: 0 / 442.6 MB, free: 11.99 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.0016/0.2673, allocations: 1.097 MB / 443.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.2674, allocations: 8.031 kB / 443.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.089e-05/0.2674, allocations: 26 kB / 443.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001301/0.2675, allocations: 130.9 kB / 443.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002441/0.2678, allocations: 119.3 kB / 444 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009374/0.2687, allocations: 0.5551 MB / 444.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.114e-05/0.2688, allocations: 62 kB / 444.6 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.2689, allocations: 87.83 kB / 444.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.2702, allocations: 0.8482 MB / 445.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.317e-05/0.2702, allocations: 7.938 kB / 445.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.054e-05/0.2703, allocations: 36 kB / 445.6 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.857e-05/0.2703, allocations: 23.94 kB / 445.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008807/0.2712, allocations: 475.3 kB / 446 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003883/0.2751, allocations: 4.318 MB / 450.4 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006158/0.2757, allocations: 292.1 kB / 450.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/0.2759, allocations: 129.6 kB / 450.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001415/0.2761, allocations: 16.36 kB / 450.8 MB, free: 3.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.365e-05/0.2761, allocations: 34.94 kB / 450.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.024e-06/0.2761, allocations: 0 / 450.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003573/0.2797, allocations: 1.595 MB / 452.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.2797, allocations: 63.78 kB / 452.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/0.2804, allocations: 0.5393 MB / 453 MB, free: 1.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.796e-05/0.2805, allocations: 37.7 kB / 453.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003979/0.2809, allocations: 487.8 kB / 453.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002457/0.2811, allocations: 230.1 kB / 453.8 MB, free: 336 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/0.2813, allocations: 134.6 kB / 453.9 MB, free: 196 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002483/0.2815, allocations: 382.8 kB / 454.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003004/0.2818, allocations: 165.9 kB / 454.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005577/0.2824, allocations: 451.2 kB / 454.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008756/0.2833, allocations: 0.6712 MB / 455.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.2833, allocations: 4 kB / 455.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001163/0.2844, allocations: 0.7389 MB / 456.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.2845, allocations: 10.5 kB / 456.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.2845, allocations: 12 kB / 456.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001696/0.2847, allocations: 44.84 kB / 456.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005636/0.2852, allocations: 183.7 kB / 456.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/0.2868, allocations: 1.578 MB / 458.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003049/0.2871, allocations: 31.98 kB / 458.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.9e-05/0.2872, allocations: 36 kB / 458.2 MB, free: 11.51 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.0003529/0.2875, allocations: 237.6 kB / 458.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.981e-05/0.2876, allocations: 79.45 kB / 458.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.2877, allocations: 71.08 kB / 458.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.2878, allocations: 8 kB / 458.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.2878, allocations: 0 / 458.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.2878, allocations: 3.984 kB / 458.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00208/0.2898, allocations: 1.389 MB / 459.9 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2898, allocations: 4 kB / 459.9 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004646/0.2903, allocations: 111.9 kB / 460.1 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001019/0.2904, allocations: 24.78 kB / 460.1 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.2905, allocations: 20.12 kB / 460.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001024/0.2915, allocations: 1.267 MB / 461.4 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.2915, allocations: 7.984 kB / 461.4 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.2926, allocations: 0.7804 MB / 462.2 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.587e-05/0.2927, allocations: 67.53 kB / 462.2 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.592e-05/0.2928, allocations: 19.98 kB / 462.2 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.293, allocations: 8 kB / 462.3 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.439e-05/0.2931, allocations: 51.91 kB / 462.3 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.603e-05/0.2931, allocations: 19.98 kB / 462.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004189/0.2935, allocations: 359.1 kB / 462.7 MB, free: 6.723 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2935, allocations: 0 / 462.7 MB, free: 6.723 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006588/0.2942, allocations: 140 kB / 462.8 MB, free: 6.586 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.001502/0.2957, allocations: 1.339 MB / 464.1 MB, free: 5.191 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.2968, allocations: 0.5645 MB / 464.7 MB, free: 4.617 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2968, allocations: 384 / 464.7 MB, free: 4.617 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004292/0.2972, allocations: 307 kB / 465 MB, free: 4.305 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006033/0.2978, allocations: 109.4 kB / 465.1 MB, free: 4.207 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008289/0.3061, allocations: 6.08 MB / 471.2 MB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006479/0.3067, allocations: 0.9691 MB / 472.2 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002743/0.307, allocations: 78.03 kB / 472.2 MB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004234/0.3074, allocations: 327.3 kB / 472.6 MB, free: 12.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3074, allocations: 8 kB / 472.6 MB, free: 12.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04259/0.35, allocations: 12.52 MB / 485.1 MB, free: 15.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.32, allocations: 15.88 kB / 485.1 MB, free: 15.92 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.664109539997298]