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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 106.1 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000952/0.000952, allocations: 47.94 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2333, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.00504/0.2384, allocations: 4.574 MB / 404.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002046/0.2404, allocations: 1.341 MB / 406.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000291/0.2407, allocations: 27.81 kB / 406.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003384/0.2411, allocations: 170.2 kB / 406.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000283/0.2414, allocations: 162.3 kB / 406.5 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006267/0.242, allocations: 367.5 kB / 406.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007775/0.2428, allocations: 0.9743 MB / 407.8 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004768/0.2433, allocations: 416.6 kB / 408.2 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000306/0.2436, allocations: 338.5 kB / 408.6 MB, free: 452 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003114/0.2439, allocations: 346 kB / 408.9 MB, free: 104 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.842e-05/0.244, allocations: 72 kB / 409 MB, free: 32 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001911/0.2442, allocations: 119.9 kB / 409.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.2443, allocations: 175.3 kB / 409.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000271/0.2446, allocations: 421.5 kB / 409.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008478/0.2455, allocations: 1.097 MB / 410.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2455, allocations: 0 / 410.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2455, allocations: 0 / 410.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.2455, allocations: 0 / 410.8 MB, free: 14.23 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.001405/0.2469, allocations: 1.146 MB / 411.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.247, allocations: 12.03 kB / 411.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.2471, allocations: 126.9 kB / 412 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.2472, allocations: 106.7 kB / 412.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000872/0.2481, allocations: 0.6267 MB / 412.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.502e-05/0.2482, allocations: 62 kB / 412.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000123/0.2483, allocations: 80 kB / 412.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.2495, allocations: 0.8442 MB / 413.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.141e-05/0.2495, allocations: 15.84 kB / 413.8 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.028e-05/0.2496, allocations: 36 kB / 413.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.2496, allocations: 20 kB / 413.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007706/0.2504, allocations: 475.3 kB / 414.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003011/0.2534, allocations: 4.38 MB / 418.7 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004914/0.2539, allocations: 300.2 kB / 419 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.2541, allocations: 145.4 kB / 419.1 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001606/0.2543, allocations: 170.6 kB / 419.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.2543, allocations: 38.94 kB / 419.3 MB, free: 5.203 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.713e-06/0.2543, allocations: 0 / 419.3 MB, free: 5.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.002931/0.2572, allocations: 1.724 MB / 421 MB, free: 3.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.2573, allocations: 67.89 kB / 421.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.2578, allocations: 0.5352 MB / 421.6 MB, free: 2.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.2578, allocations: 37.7 kB / 421.7 MB, free: 2.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002808/0.2581, allocations: 482.4 kB / 422.1 MB, free: 2.246 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.2583, allocations: 209 kB / 422.3 MB, free: 2.039 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.2584, allocations: 142.5 kB / 422.5 MB, free: 1.895 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.2586, allocations: 378.8 kB / 422.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.2588, allocations: 157.9 kB / 423 MB, free: 1.363 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004405/0.2593, allocations: 463.2 kB / 423.5 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007373/0.26, allocations: 0.6712 MB / 424.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.26, allocations: 4 kB / 424.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0009707/0.261, allocations: 0.7421 MB / 424.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.261, allocations: 8 kB / 424.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.2611, allocations: 8 kB / 424.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001422/0.2612, allocations: 48.84 kB / 424.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005061/0.2617, allocations: 179.7 kB / 425.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.263, allocations: 1.697 MB / 426.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002523/0.2632, allocations: 27.94 kB / 426.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.802e-05/0.2633, allocations: 36 kB / 426.9 MB, free: 13.08 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.0002424/0.2635, allocations: 237.5 kB / 427.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.189e-05/0.2636, allocations: 71.09 kB / 427.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001125/0.2637, allocations: 83.06 kB / 427.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2637, allocations: 4 kB / 427.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2637, allocations: 0 / 427.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.2638, allocations: 4 kB / 427.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001617/0.2654, allocations: 1.417 MB / 428.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2654, allocations: 0 / 428.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004477/0.2658, allocations: 115.8 kB / 428.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.611e-05/0.2659, allocations: 24.84 kB / 428.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.266, allocations: 16 kB / 428.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007448/0.2667, allocations: 1.371 MB / 430.2 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.2667, allocations: 7.938 kB / 430.2 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000885/0.2676, allocations: 0.7852 MB / 431 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.2677, allocations: 132.5 kB / 431.1 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.044e-05/0.2678, allocations: 12 kB / 431.1 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.268, allocations: 23.92 kB / 431.2 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.634e-05/0.2681, allocations: 47.92 kB / 431.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.2681, allocations: 16 kB / 431.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003214/0.2684, allocations: 363.1 kB / 431.6 MB, free: 8.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2684, allocations: 0 / 431.6 MB, free: 8.039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005404/0.269, allocations: 140 kB / 431.7 MB, free: 7.902 MB / 350.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.001125/0.2701, allocations: 1.333 MB / 433.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008168/0.2709, allocations: 0.5885 MB / 433.6 MB, free: 5.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2709, allocations: 8.062 kB / 433.7 MB, free: 5.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003445/0.2713, allocations: 306.8 kB / 434 MB, free: 5.582 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000564/0.2719, allocations: 90.95 kB / 434 MB, free: 5.488 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006334/0.2782, allocations: 6.045 MB / 440.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/0.2787, allocations: 0.9613 MB / 441 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002159/0.2789, allocations: 85.88 kB / 441.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003236/0.2792, allocations: 331.3 kB / 441.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2792, allocations: 3.938 kB / 441.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.171/2.451, allocations: 12 MB / 453.5 MB, free: 1.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.46/16.91, allocations: 10.86 kB / 453.5 MB, free: 1.809 MB / 366.1 MB (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 --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) 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) Reference file matches