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.001636/0.001636, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001965/0.001965, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.365/1.365, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.001532/0.001532, allocations: 47.92 kB / 378.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2446, allocations: 53.36 MB / 431.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006458/0.2511, allocations: 4.109 MB / 436 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002996/0.2541, allocations: 1.356 MB / 437.3 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007587/0.2548, allocations: 35.69 kB / 437.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006634/0.2555, allocations: 178.2 kB / 437.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008222/0.2563, allocations: 174.3 kB / 437.7 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.2574, allocations: 375.4 kB / 438.1 MB, free: 424 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001427/0.2588, allocations: 0.9782 MB / 439 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005707/0.2594, allocations: 287.5 kB / 439.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000569/0.26, allocations: 346.5 kB / 439.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003795/0.2603, allocations: 346 kB / 440 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.2605, allocations: 72 kB / 440.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002294/0.2607, allocations: 127.9 kB / 440.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.2609, allocations: 167.3 kB / 440.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003644/0.2612, allocations: 338.1 kB / 440.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001247/0.2625, allocations: 1.111 MB / 441.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2625, allocations: 0 / 441.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2625, allocations: 0 / 441.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.482e-05/0.2625, allocations: 7.984 kB / 441.8 MB, free: 12.64 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.001604/0.2641, allocations: 1.093 MB / 442.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.2641, allocations: 8.031 kB / 442.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.691e-05/0.2642, allocations: 30 kB / 442.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001397/0.2643, allocations: 130.9 kB / 443.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002656/0.2646, allocations: 119.3 kB / 443.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00098/0.2656, allocations: 0.555 MB / 443.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.216e-05/0.2656, allocations: 62 kB / 443.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.2657, allocations: 87.88 kB / 443.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.2671, allocations: 0.8443 MB / 444.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.489e-05/0.2671, allocations: 11.98 kB / 444.7 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.913e-05/0.2672, allocations: 32 kB / 444.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.2672, allocations: 24 kB / 444.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00086/0.2681, allocations: 471.2 kB / 445.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004045/0.2721, allocations: 4.17 MB / 449.4 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005827/0.2727, allocations: 289.4 kB / 449.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002307/0.2729, allocations: 133.4 kB / 449.8 MB, free: 4.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001286/0.2731, allocations: 16.36 kB / 449.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.2731, allocations: 38.94 kB / 449.9 MB, free: 4.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 7.183e-06/0.2731, allocations: 7.984 kB / 449.9 MB, free: 4.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003292/0.2764, allocations: 1.598 MB / 451.5 MB, free: 2.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.2765, allocations: 59.84 kB / 451.6 MB, free: 2.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005762/0.277, allocations: 0.5393 MB / 452.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.2771, allocations: 41.64 kB / 452.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003345/0.2774, allocations: 487.8 kB / 452.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.2776, allocations: 222.1 kB / 452.8 MB, free: 1.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001776/0.2777, allocations: 142.6 kB / 453 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.2779, allocations: 382.8 kB / 453.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003002/0.2782, allocations: 161.9 kB / 453.5 MB, free: 456 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005076/0.2787, allocations: 455.2 kB / 453.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008671/0.2796, allocations: 0.6673 MB / 454.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.2796, allocations: 12 kB / 454.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001122/0.2807, allocations: 0.7348 MB / 455.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.2807, allocations: 8.188 kB / 455.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.2808, allocations: 16 kB / 455.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00016/0.2809, allocations: 44.84 kB / 455.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005448/0.2815, allocations: 183.7 kB / 455.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/0.2828, allocations: 1.57 MB / 457.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.2831, allocations: 28 kB / 457.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.57e-05/0.2832, allocations: 32 kB / 457.2 MB, free: 12.32 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.000292/0.2834, allocations: 244.5 kB / 457.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.647e-05/0.2835, allocations: 79.47 kB / 457.5 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.2837, allocations: 71.08 kB / 457.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.2837, allocations: 8 kB / 457.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.2837, allocations: 4.172 kB / 457.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2837, allocations: 0 / 457.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001842/0.2855, allocations: 1.284 MB / 458.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.309e-06/0.2855, allocations: 4 kB / 458.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004871/0.286, allocations: 115.9 kB / 459 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.436e-05/0.2861, allocations: 20.86 kB / 459.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.652e-05/0.2861, allocations: 20.03 kB / 459.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009392/0.2871, allocations: 1.275 MB / 460.3 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.2871, allocations: 3.938 kB / 460.3 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.2881, allocations: 0.7764 MB / 461.1 MB, free: 8.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.739e-05/0.2882, allocations: 59.53 kB / 461.2 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.763e-05/0.2882, allocations: 20.14 kB / 461.2 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.2884, allocations: 16.19 kB / 461.2 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.463e-05/0.2885, allocations: 43.91 kB / 461.3 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.2885, allocations: 23.92 kB / 461.3 MB, free: 8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004004/0.2889, allocations: 367 kB / 461.6 MB, free: 7.645 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2889, allocations: 0 / 461.6 MB, free: 7.645 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006138/0.2895, allocations: 140 kB / 461.8 MB, free: 7.508 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.001391/0.2909, allocations: 1.343 MB / 463.1 MB, free: 6.105 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009093/0.2918, allocations: 0.5645 MB / 463.7 MB, free: 5.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2918, allocations: 0 / 463.7 MB, free: 5.531 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003888/0.2922, allocations: 298.5 kB / 464 MB, free: 5.227 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005694/0.2928, allocations: 102.7 kB / 464.1 MB, free: 5.133 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007473/0.3003, allocations: 6.088 MB / 470.2 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.3006, allocations: 378.3 kB / 470.5 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002497/0.3009, allocations: 86.02 kB / 470.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000384/0.3013, allocations: 323.3 kB / 470.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3013, allocations: 0 / 470.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04033/0.3416, allocations: 12.49 MB / 483.4 MB, free: 1.582 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.14, allocations: 14.25 kB / 483.4 MB, free: 1.574 MB / 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.493867272976786]