Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 193 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 43.92 kB / 371.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2263, allocations: 52.18 MB / 423.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005419/0.2317, allocations: 4.111 MB / 427.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002319/0.234, allocations: 1.29 MB / 428.7 MB, free: 8.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002901/0.2343, allocations: 35.69 kB / 428.8 MB, free: 8.945 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003681/0.2347, allocations: 174.2 kB / 428.9 MB, free: 8.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003391/0.235, allocations: 174.3 kB / 429.1 MB, free: 8.602 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006922/0.2357, allocations: 363.5 kB / 429.5 MB, free: 8.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000966/0.2367, allocations: 0.9743 MB / 430.4 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.2371, allocations: 279.4 kB / 430.7 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003642/0.2375, allocations: 346.5 kB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003555/0.2378, allocations: 353.9 kB / 431.4 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001034/0.2379, allocations: 72 kB / 431.5 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002415/0.2382, allocations: 116 kB / 431.6 MB, free: 6.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001458/0.2383, allocations: 167.3 kB / 431.7 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002991/0.2386, allocations: 342 kB / 432.1 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001118/0.2397, allocations: 1.107 MB / 433.2 MB, free: 4.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2398, allocations: 4 kB / 433.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2398, allocations: 0 / 433.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.2398, allocations: 0 / 433.2 MB, free: 4.488 MB / 334.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.001526/0.2413, allocations: 1.096 MB / 434.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.2413, allocations: 12.03 kB / 434.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.076e-05/0.2414, allocations: 22 kB / 434.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001357/0.2415, allocations: 126.9 kB / 434.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.2416, allocations: 111.3 kB / 434.6 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009138/0.2425, allocations: 0.5512 MB / 435.1 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.463e-05/0.2426, allocations: 58 kB / 435.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.2427, allocations: 87.89 kB / 435.2 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.2441, allocations: 0.8404 MB / 436.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.789e-05/0.2441, allocations: 15.88 kB / 436.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.979e-05/0.2442, allocations: 36 kB / 436.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.363e-05/0.2442, allocations: 27.98 kB / 436.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000922/0.2451, allocations: 471.3 kB / 436.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003894/0.249, allocations: 4.174 MB / 440.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005727/0.2496, allocations: 276.2 kB / 441.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000231/0.2498, allocations: 133.3 kB / 441.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001221/0.2499, allocations: 16.36 kB / 441.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.646e-05/0.25, allocations: 38.94 kB / 441.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.515e-06/0.25, allocations: 0 / 441.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003197/0.2532, allocations: 1.602 MB / 442.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.2532, allocations: 67.83 kB / 442.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006249/0.2539, allocations: 0.5392 MB / 443.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.126e-05/0.2539, allocations: 29.7 kB / 443.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003597/0.2543, allocations: 491.8 kB / 444 MB, free: 9.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.2544, allocations: 222.1 kB / 444.2 MB, free: 9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001781/0.2546, allocations: 146.6 kB / 444.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.2548, allocations: 378.8 kB / 444.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002936/0.2551, allocations: 165.9 kB / 444.9 MB, free: 8.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005277/0.2556, allocations: 459.1 kB / 445.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008992/0.2565, allocations: 0.6634 MB / 446 MB, free: 6.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.2565, allocations: 4 kB / 446 MB, free: 6.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001183/0.2577, allocations: 0.7382 MB / 446.7 MB, free: 6.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.2578, allocations: 8 kB / 446.7 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.2578, allocations: 12 kB / 446.7 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001866/0.258, allocations: 53.5 kB / 446.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005722/0.2585, allocations: 183.7 kB / 447 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001456/0.26, allocations: 1.574 MB / 448.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.2603, allocations: 31.98 kB / 448.6 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-05/0.2603, allocations: 35.94 kB / 448.6 MB, free: 4.172 MB / 350.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.0003229/0.2606, allocations: 233.5 kB / 448.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.2607, allocations: 79.47 kB / 448.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.2609, allocations: 71.08 kB / 449 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.2609, allocations: 8.062 kB / 449 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2609, allocations: 4 kB / 449 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.2609, allocations: 8.016 kB / 449 MB, free: 3.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/0.2628, allocations: 1.287 MB / 450.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.2628, allocations: 4 kB / 450.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004755/0.2633, allocations: 115.8 kB / 450.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.59e-05/0.2634, allocations: 24.84 kB / 450.4 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.059e-05/0.2634, allocations: 16 kB / 450.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000988/0.2644, allocations: 1.268 MB / 451.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.2644, allocations: 8.062 kB / 451.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.2654, allocations: 0.7841 MB / 452.5 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.279e-05/0.2655, allocations: 59.58 kB / 452.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.365e-05/0.2656, allocations: 12 kB / 452.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.2658, allocations: 19.94 kB / 452.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.267e-05/0.2659, allocations: 43.81 kB / 452.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.73e-05/0.2659, allocations: 16 kB / 452.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004028/0.2663, allocations: 371.2 kB / 453 MB, free: 15.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2663, allocations: 3.938 kB / 453 MB, free: 15.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005865/0.2669, allocations: 136 kB / 453.2 MB, free: 15.36 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.001418/0.2683, allocations: 1.336 MB / 454.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000961/0.2693, allocations: 0.5645 MB / 455.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2693, allocations: 128 / 455.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004021/0.2697, allocations: 294.4 kB / 455.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006011/0.2703, allocations: 99.48 kB / 455.4 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007686/0.278, allocations: 6.075 MB / 461.5 MB, free: 6.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003827/0.2783, allocations: 374.3 kB / 461.9 MB, free: 6.109 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002504/0.2786, allocations: 89.92 kB / 462 MB, free: 6.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003993/0.279, allocations: 323.3 kB / 462.3 MB, free: 5.703 MB / 366.1 MB Notification: Performance of SimCode: time 8.91e-07/0.279, allocations: 0 / 462.3 MB, free: 5.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03951/0.3185, allocations: 12.46 MB / 474.7 MB, free: 9.496 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.18, allocations: 11.33 kB / 474.8 MB, free: 9.492 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.451397928991355]