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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001395/0.001395, allocations: 117.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001545/0.001545, allocations: 203.8 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2493, allocations: 50.55 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005136/0.2545, allocations: 4.578 MB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002661/0.2572, allocations: 1.403 MB / 414.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004759/0.2577, allocations: 23.81 kB / 414.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004167/0.2581, allocations: 182.2 kB / 414.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003749/0.2585, allocations: 158.3 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008415/0.2593, allocations: 375.4 kB / 415.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009307/0.2603, allocations: 0.986 MB / 416.4 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005395/0.2608, allocations: 422.9 kB / 416.9 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004205/0.2613, allocations: 334.6 kB / 417.2 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003133/0.2616, allocations: 350 kB / 417.5 MB, free: 8.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.493e-05/0.2617, allocations: 72 kB / 417.6 MB, free: 8.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002148/0.2619, allocations: 116 kB / 417.7 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.2621, allocations: 171.3 kB / 417.9 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003197/0.2624, allocations: 433.5 kB / 418.3 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001024/0.2634, allocations: 1.103 MB / 419.4 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.2634, allocations: 0 / 419.4 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2634, allocations: 0 / 419.4 MB, free: 6.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.2635, allocations: 0 / 419.4 MB, free: 6.852 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.001426/0.2649, allocations: 1.149 MB / 420.6 MB, free: 5.648 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.2649, allocations: 8.031 kB / 420.6 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001283/0.2651, allocations: 134.9 kB / 420.7 MB, free: 5.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002287/0.2653, allocations: 106.8 kB / 420.8 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008924/0.2662, allocations: 0.6306 MB / 421.4 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.267e-05/0.2663, allocations: 62 kB / 421.5 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.2664, allocations: 83.89 kB / 421.6 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.2675, allocations: 0.8443 MB / 422.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.356e-05/0.2676, allocations: 15.83 kB / 422.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.143e-05/0.2676, allocations: 32 kB / 422.5 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.2677, allocations: 28 kB / 422.5 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008025/0.2685, allocations: 467.3 kB / 422.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003695/0.2722, allocations: 4.377 MB / 427.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005744/0.2728, allocations: 303.5 kB / 427.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002838/0.2731, allocations: 137.6 kB / 427.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002015/0.2733, allocations: 174.5 kB / 427.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.2733, allocations: 38.88 kB / 428 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 2.414e-06/0.2733, allocations: 4 kB / 428 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003183/0.2765, allocations: 1.737 MB / 429.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.2766, allocations: 63.91 kB / 429.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005438/0.2771, allocations: 0.543 MB / 430.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.2771, allocations: 37.7 kB / 430.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002649/0.2774, allocations: 474.5 kB / 430.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.2776, allocations: 216.9 kB / 431 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.2777, allocations: 134.5 kB / 431.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.2779, allocations: 382.8 kB / 431.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002563/0.2781, allocations: 161.9 kB / 431.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004304/0.2786, allocations: 463.2 kB / 432.1 MB, free: 9.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007678/0.2793, allocations: 0.6634 MB / 432.8 MB, free: 8.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.2794, allocations: 4 kB / 432.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001034/0.2804, allocations: 0.7341 MB / 433.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.2804, allocations: 12 kB / 433.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.2804, allocations: 8 kB / 433.6 MB, free: 7.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001557/0.2806, allocations: 48.84 kB / 433.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005364/0.2811, allocations: 179.7 kB / 433.8 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/0.2824, allocations: 1.693 MB / 435.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000308/0.2827, allocations: 32.06 kB / 435.5 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.034e-05/0.2828, allocations: 36 kB / 435.5 MB, free: 5.68 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.0002846/0.2831, allocations: 233.5 kB / 435.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.674e-05/0.2832, allocations: 75.03 kB / 435.8 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/0.2833, allocations: 83.06 kB / 435.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.2833, allocations: 4.188 kB / 435.9 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.2833, allocations: 4 kB / 435.9 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.2833, allocations: 0 / 435.9 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001783/0.2851, allocations: 1.413 MB / 437.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.2851, allocations: 3.984 kB / 437.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004825/0.2856, allocations: 115.8 kB / 437.5 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.75e-05/0.2857, allocations: 24.84 kB / 437.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.395e-05/0.2858, allocations: 16 kB / 437.5 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008066/0.2866, allocations: 1.371 MB / 438.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.2866, allocations: 8.062 kB / 438.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009434/0.2876, allocations: 0.7773 MB / 439.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.2877, allocations: 140.2 kB / 439.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.676e-05/0.2877, allocations: 12 kB / 439.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.288, allocations: 23.98 kB / 439.8 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.768e-05/0.288, allocations: 39.89 kB / 439.9 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.2881, allocations: 20.17 kB / 439.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003626/0.2884, allocations: 367.1 kB / 440.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2884, allocations: 3.938 kB / 440.2 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000657/0.2891, allocations: 136.1 kB / 440.4 MB, free: 0.5039 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.001241/0.2903, allocations: 1.34 MB / 441.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009273/0.2913, allocations: 0.5886 MB / 442.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2913, allocations: 0 / 442.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.2917, allocations: 306.3 kB / 442.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000616/0.2923, allocations: 100.1 kB / 442.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007125/0.2994, allocations: 6.051 MB / 448.8 MB, free: 7.625 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004984/0.3, allocations: 0.9652 MB / 449.7 MB, free: 6.633 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002565/0.3002, allocations: 86.02 kB / 449.8 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003541/0.3006, allocations: 323.3 kB / 450.1 MB, free: 6.23 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3006, allocations: 0 / 450.1 MB, free: 6.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03504/0.3357, allocations: 12.03 MB / 462.2 MB, free: 10.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.966/10.3, allocations: 10.2 kB / 462.2 MB, free: 10.35 MB / 382.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches