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.001472/0.001472, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00154/0.00154, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.25, allocations: 50.54 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005737/0.2558, allocations: 4.586 MB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002494/0.2583, allocations: 1.411 MB / 414.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003135/0.2586, allocations: 23.88 kB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003768/0.259, allocations: 174.2 kB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003237/0.2594, allocations: 162.4 kB / 415.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007519/0.2601, allocations: 379.4 kB / 415.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000962/0.2611, allocations: 0.986 MB / 416.5 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000536/0.2617, allocations: 422.9 kB / 416.9 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003921/0.2621, allocations: 326.6 kB / 417.3 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003521/0.2624, allocations: 342 kB / 417.6 MB, free: 8.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.427e-05/0.2625, allocations: 72 kB / 417.7 MB, free: 8.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002212/0.2628, allocations: 131.9 kB / 417.8 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.2629, allocations: 175.3 kB / 418 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003411/0.2633, allocations: 425.5 kB / 418.4 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.2644, allocations: 1.107 MB / 419.5 MB, free: 6.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2644, allocations: 0 / 419.5 MB, free: 6.762 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2644, allocations: 0 / 419.5 MB, free: 6.762 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.038e-05/0.2644, allocations: 0 / 419.5 MB, free: 6.762 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.001515/0.2659, allocations: 1.172 MB / 420.7 MB, free: 5.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.266, allocations: 8.031 kB / 420.7 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001273/0.2661, allocations: 126.9 kB / 420.8 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002351/0.2663, allocations: 123.3 kB / 420.9 MB, free: 5.273 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008885/0.2672, allocations: 0.6389 MB / 421.5 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.67e-05/0.2673, allocations: 58 kB / 421.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.2674, allocations: 83.95 kB / 421.7 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.2687, allocations: 0.8481 MB / 422.5 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.037e-05/0.2687, allocations: 8 kB / 422.5 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.504e-05/0.2688, allocations: 32 kB / 422.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.321e-05/0.2688, allocations: 20 kB / 422.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008608/0.2697, allocations: 479.2 kB / 423.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003693/0.2734, allocations: 4.385 MB / 427.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005652/0.274, allocations: 303.5 kB / 427.7 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002329/0.2742, allocations: 137.6 kB / 427.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002042/0.2744, allocations: 174.6 kB / 428 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.2745, allocations: 38.94 kB / 428.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=46): time 1.863e-06/0.2745, allocations: 0 / 428.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003222/0.2777, allocations: 1.747 MB / 429.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.2778, allocations: 63.89 kB / 429.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005856/0.2784, allocations: 0.5392 MB / 430.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.2784, allocations: 37.69 kB / 430.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/0.2787, allocations: 487.8 kB / 430.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.2789, allocations: 218.1 kB / 431.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.2791, allocations: 142.6 kB / 431.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.2793, allocations: 386.8 kB / 431.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.2796, allocations: 165.9 kB / 431.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005052/0.2801, allocations: 455.2 kB / 432.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008354/0.2809, allocations: 0.6673 MB / 432.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.2809, allocations: 4 kB / 432.9 MB, free: 8.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001099/0.282, allocations: 0.7381 MB / 433.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.2821, allocations: 12 kB / 433.7 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.2821, allocations: 8 kB / 433.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001542/0.2822, allocations: 45.62 kB / 433.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005446/0.2828, allocations: 187.7 kB / 433.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.2843, allocations: 1.685 MB / 435.6 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002744/0.2846, allocations: 24 kB / 435.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.139e-05/0.2846, allocations: 43.94 kB / 435.7 MB, free: 5.523 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.0003021/0.2849, allocations: 237.1 kB / 435.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.326e-05/0.285, allocations: 75.47 kB / 436 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.2852, allocations: 79.08 kB / 436.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.2852, allocations: 4.062 kB / 436.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.2852, allocations: 4 kB / 436.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.2852, allocations: 3.984 kB / 436.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001931/0.2871, allocations: 1.41 MB / 437.5 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.2871, allocations: 4 kB / 437.5 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004633/0.2876, allocations: 115.8 kB / 437.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.811e-05/0.2877, allocations: 29.19 kB / 437.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.2878, allocations: 16 kB / 437.7 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001017/0.2888, allocations: 1.39 MB / 439 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2888, allocations: 0 / 439 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.2899, allocations: 0.7778 MB / 439.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.29, allocations: 140.6 kB / 440 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.374e-05/0.2901, allocations: 15.98 kB / 440 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001939/0.2903, allocations: 20 kB / 440 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.929e-05/0.2903, allocations: 39.92 kB / 440 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.2904, allocations: 20 kB / 440.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003903/0.2908, allocations: 363.1 kB / 440.4 MB, free: 488 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2908, allocations: 8 kB / 440.4 MB, free: 480 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006029/0.2914, allocations: 136 kB / 440.5 MB, free: 344 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.001373/0.2928, allocations: 1.341 MB / 441.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009525/0.2937, allocations: 0.5959 MB / 442.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.2937, allocations: 4 kB / 442.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003947/0.2941, allocations: 303.6 kB / 442.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005974/0.2948, allocations: 101.4 kB / 442.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007718/0.3025, allocations: 6.089 MB / 449 MB, free: 7.402 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006426/0.3032, allocations: 0.9652 MB / 449.9 MB, free: 6.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000278/0.3034, allocations: 86.02 kB / 450 MB, free: 6.324 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004129/0.3039, allocations: 323.3 kB / 450.3 MB, free: 6.008 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3039, allocations: 384 / 450.3 MB, free: 6.008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0401/0.344, allocations: 11.87 MB / 462.2 MB, free: 10.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/10.38, allocations: 7.266 kB / 462.2 MB, free: 10.29 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.1.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