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.001548/0.001548, allocations: 110 kB / 20.43 MB, free: 1.453 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.001441/0.001441, allocations: 210.7 kB / 23.74 MB, free: 4.66 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.398/1.398, allocations: 230.5 MB / 257.4 MB, free: 7.996 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 63.89 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2431, allocations: 53.41 MB / 431.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006342/0.2494, allocations: 4.611 MB / 435.8 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00285/0.2523, allocations: 1.43 MB / 437.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005117/0.2528, allocations: 31.75 kB / 437.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004375/0.2532, allocations: 178.2 kB / 437.4 MB, free: 448 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004256/0.2536, allocations: 170.3 kB / 437.6 MB, free: 276 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008694/0.2545, allocations: 379.3 kB / 438 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00109/0.2556, allocations: 0.9821 MB / 438.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004696/0.2561, allocations: 287.4 kB / 439.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004747/0.2565, allocations: 342.6 kB / 439.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003878/0.2569, allocations: 346 kB / 439.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.257, allocations: 72 kB / 440 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002362/0.2573, allocations: 127.9 kB / 440.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.2574, allocations: 171.3 kB / 440.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003611/0.2578, allocations: 429.5 kB / 440.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001212/0.259, allocations: 1.116 MB / 441.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.259, allocations: 0 / 441.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.259, allocations: 0 / 441.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.259, allocations: 0 / 441.8 MB, free: 12.04 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.001757/0.2608, allocations: 1.1 MB / 442.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.2608, allocations: 8.031 kB / 442.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001346/0.2609, allocations: 126.9 kB / 443 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002565/0.2612, allocations: 119.3 kB / 443.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009548/0.2621, allocations: 0.5551 MB / 443.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.598e-05/0.2622, allocations: 58 kB / 443.8 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.2623, allocations: 87.89 kB / 443.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.2636, allocations: 0.8481 MB / 444.7 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.78e-05/0.2637, allocations: 11.94 kB / 444.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.905e-05/0.2637, allocations: 36 kB / 444.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.1e-05/0.2638, allocations: 20 kB / 444.8 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008944/0.2647, allocations: 471.3 kB / 445.2 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004148/0.2688, allocations: 4.318 MB / 449.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006147/0.2694, allocations: 296 kB / 449.8 MB, free: 3.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.2697, allocations: 129.5 kB / 450 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001335/0.2698, allocations: 20.36 kB / 450 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.2698, allocations: 38.94 kB / 450 MB, free: 3.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.853e-06/0.2698, allocations: 0 / 450 MB, free: 3.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003355/0.2732, allocations: 1.599 MB / 451.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.047e-05/0.2732, allocations: 59.84 kB / 451.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006533/0.2739, allocations: 0.5431 MB / 452.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.2739, allocations: 29.7 kB / 452.2 MB, free: 1.113 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003624/0.2743, allocations: 495.8 kB / 452.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001642/0.2744, allocations: 218.1 kB / 452.9 MB, free: 416 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.2746, allocations: 146.6 kB / 453.1 MB, free: 264 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.2748, allocations: 378.8 kB / 453.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002948/0.2751, allocations: 165.9 kB / 453.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005215/0.2756, allocations: 451.2 kB / 454.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008905/0.2765, allocations: 0.6673 MB / 454.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.2765, allocations: 4 kB / 454.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001209/0.2778, allocations: 0.742 MB / 455.5 MB, free: 13.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.2778, allocations: 8 kB / 455.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.2778, allocations: 12.84 kB / 455.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001821/0.278, allocations: 44.84 kB / 455.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005563/0.2785, allocations: 191.7 kB / 455.7 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/0.2802, allocations: 1.578 MB / 457.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.2805, allocations: 28.19 kB / 457.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.932e-05/0.2806, allocations: 40 kB / 457.4 MB, free: 11.57 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.0003678/0.2809, allocations: 229.5 kB / 457.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.281, allocations: 79.47 kB / 457.7 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/0.2812, allocations: 71.08 kB / 457.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.2812, allocations: 12.06 kB / 457.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.2812, allocations: 0 / 457.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.2812, allocations: 3.984 kB / 457.7 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/0.2832, allocations: 1.377 MB / 459.1 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.2832, allocations: 4 kB / 459.1 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/0.2837, allocations: 111.9 kB / 459.2 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.358e-05/0.2838, allocations: 37.06 kB / 459.3 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.322e-05/0.2838, allocations: 16 kB / 459.3 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001023/0.2848, allocations: 1.271 MB / 460.6 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.2848, allocations: 4 kB / 460.6 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.2859, allocations: 0.7842 MB / 461.3 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.286, allocations: 63.53 kB / 461.4 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.438e-05/0.2861, allocations: 15.98 kB / 461.4 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.2863, allocations: 16 kB / 461.4 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-05/0.2863, allocations: 51.89 kB / 461.5 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.2864, allocations: 12 kB / 461.5 MB, free: 7.141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004411/0.2868, allocations: 363.1 kB / 461.9 MB, free: 6.793 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2868, allocations: 4 kB / 461.9 MB, free: 6.789 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006707/0.2875, allocations: 136 kB / 462 MB, free: 6.656 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.001483/0.289, allocations: 1.346 MB / 463.3 MB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.29, allocations: 0.5757 MB / 463.9 MB, free: 4.676 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.29, allocations: 0 / 463.9 MB, free: 4.676 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004763/0.2905, allocations: 299.8 kB / 464.2 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006042/0.2911, allocations: 102.5 kB / 464.3 MB, free: 4.273 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008037/0.2991, allocations: 6.082 MB / 470.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005982/0.2997, allocations: 0.9652 MB / 471.4 MB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002554/0.3, allocations: 90 kB / 471.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000383/0.3004, allocations: 319.3 kB / 471.8 MB, free: 12.37 MB / 382.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3004, allocations: 0 / 471.8 MB, free: 12.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04983/0.3502, allocations: 12.49 MB / 484.2 MB, free: 16 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.31, allocations: 10.12 kB / 484.3 MB, free: 12 kB / 382.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.625414783833548]