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.001262/0.001262, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.2088, allocations: 50.54 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005082/0.2139, allocations: 4.586 MB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002217/0.2162, allocations: 1.399 MB / 414.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004821/0.2167, allocations: 19.88 kB / 414.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004144/0.2171, allocations: 182.2 kB / 414.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004395/0.2176, allocations: 166.3 kB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007312/0.2183, allocations: 367.4 kB / 415.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009724/0.2193, allocations: 0.986 MB / 416.4 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005145/0.2198, allocations: 422.9 kB / 416.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004144/0.2202, allocations: 338.5 kB / 417.2 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003598/0.2206, allocations: 350 kB / 417.5 MB, free: 8.703 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.2207, allocations: 72 kB / 417.6 MB, free: 8.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.2209, allocations: 123.9 kB / 417.7 MB, free: 8.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.2211, allocations: 175.3 kB / 417.9 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003113/0.2214, allocations: 425.5 kB / 418.3 MB, free: 7.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000892/0.2223, allocations: 1.103 MB / 419.4 MB, free: 6.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2223, allocations: 0 / 419.4 MB, free: 6.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2223, allocations: 0 / 419.4 MB, free: 6.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.2223, allocations: 0 / 419.4 MB, free: 6.816 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.001319/0.2236, allocations: 1.149 MB / 420.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.2237, allocations: 8.031 kB / 420.6 MB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.2238, allocations: 130.9 kB / 420.7 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.224, allocations: 110.8 kB / 420.8 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008326/0.2248, allocations: 0.6228 MB / 421.4 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.706e-05/0.2249, allocations: 62 kB / 421.5 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.225, allocations: 83.89 kB / 421.6 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001117/0.2261, allocations: 0.8481 MB / 422.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.034e-05/0.2261, allocations: 15.91 kB / 422.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.083e-05/0.2262, allocations: 36 kB / 422.5 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.2262, allocations: 20 kB / 422.5 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007775/0.227, allocations: 471.3 kB / 422.9 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003075/0.2301, allocations: 4.369 MB / 427.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004932/0.2306, allocations: 303.5 kB / 427.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.2308, allocations: 145.5 kB / 427.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000151/0.231, allocations: 166.6 kB / 427.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.231, allocations: 46.88 kB / 428 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.643e-06/0.231, allocations: 0 / 428 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.002808/0.2338, allocations: 1.733 MB / 429.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.2339, allocations: 63.91 kB / 429.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004829/0.2344, allocations: 0.5391 MB / 430.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.2344, allocations: 37.7 kB / 430.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002543/0.2347, allocations: 474.5 kB / 430.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.2348, allocations: 216.9 kB / 431 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001501/0.2349, allocations: 138.5 kB / 431.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.2351, allocations: 386.8 kB / 431.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.2354, allocations: 157.9 kB / 431.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004257/0.2358, allocations: 463.1 kB / 432.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007151/0.2365, allocations: 0.6634 MB / 432.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2365, allocations: 11.94 kB / 432.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0009948/0.2375, allocations: 0.7456 MB / 433.5 MB, free: 7.789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.2376, allocations: 11.12 kB / 433.6 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.2376, allocations: 8 kB / 433.6 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001317/0.2377, allocations: 49.62 kB / 433.6 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005007/0.2382, allocations: 179.7 kB / 433.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/0.2394, allocations: 1.689 MB / 435.5 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002505/0.2396, allocations: 24 kB / 435.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.892e-05/0.2397, allocations: 36 kB / 435.5 MB, free: 5.652 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.0002345/0.2399, allocations: 237.4 kB / 435.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.919e-05/0.24, allocations: 75.09 kB / 435.8 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.2401, allocations: 79.06 kB / 435.9 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.2401, allocations: 4 kB / 435.9 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.2401, allocations: 8.062 kB / 435.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.2401, allocations: 192 / 435.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001649/0.2418, allocations: 1.413 MB / 437.3 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.2418, allocations: 7.938 kB / 437.3 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004379/0.2423, allocations: 107.9 kB / 437.5 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.182e-05/0.2423, allocations: 29.19 kB / 437.5 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.2424, allocations: 16 kB / 437.5 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007732/0.2432, allocations: 1.371 MB / 438.9 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/0.2432, allocations: 15.86 kB / 438.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009029/0.2441, allocations: 0.7696 MB / 439.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.2442, allocations: 144.2 kB / 439.8 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.2443, allocations: 19.98 kB / 439.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001884/0.2444, allocations: 8 kB / 439.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.521e-05/0.2445, allocations: 47.92 kB / 439.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/0.2445, allocations: 16 kB / 439.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003258/0.2449, allocations: 363.1 kB / 440.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2449, allocations: 4 kB / 440.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000535/0.2454, allocations: 140 kB / 440.4 MB, free: 484 kB / 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.001156/0.2466, allocations: 1.336 MB / 441.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008248/0.2474, allocations: 0.5882 MB / 442.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2474, allocations: 0 / 442.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003539/0.2478, allocations: 307.5 kB / 442.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005513/0.2484, allocations: 109.6 kB / 442.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006329/0.2547, allocations: 6.045 MB / 448.8 MB, free: 7.594 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004489/0.2552, allocations: 0.9691 MB / 449.7 MB, free: 6.598 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002174/0.2554, allocations: 90 kB / 449.8 MB, free: 6.508 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003341/0.2557, allocations: 327.3 kB / 450.1 MB, free: 6.188 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2557, allocations: 0 / 450.1 MB, free: 6.188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.898/3.154, allocations: 12.03 MB / 462.2 MB, free: 10.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/14.91, allocations: 11.31 kB / 462.2 MB, free: 10.31 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