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.001591/0.001591, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001741/0.001741, allocations: 197.3 kB / 18 MB, free: 5.047 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.341/1.341, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 43.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2277, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.00562/0.2334, allocations: 4.582 MB / 404.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002216/0.2356, allocations: 1.329 MB / 406.1 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002804/0.2359, allocations: 23.81 kB / 406.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003862/0.2363, allocations: 178.2 kB / 406.3 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003175/0.2366, allocations: 166.3 kB / 406.5 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000683/0.2373, allocations: 371.5 kB / 406.9 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000964/0.2383, allocations: 0.9743 MB / 407.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005474/0.2389, allocations: 414.9 kB / 408.2 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003561/0.2392, allocations: 330.5 kB / 408.6 MB, free: 424 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003483/0.2396, allocations: 342 kB / 408.9 MB, free: 80 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.344e-05/0.2397, allocations: 72 kB / 409 MB, free: 8 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002194/0.2399, allocations: 123.9 kB / 409.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.2401, allocations: 167.3 kB / 409.2 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003505/0.2404, allocations: 425.5 kB / 409.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.2415, allocations: 1.107 MB / 410.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2415, allocations: 0 / 410.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2415, allocations: 0 / 410.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.2416, allocations: 0 / 410.8 MB, free: 14.2 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.001523/0.2431, allocations: 1.168 MB / 411.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.2431, allocations: 12.03 kB / 411.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.2433, allocations: 134.9 kB / 412.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.2434, allocations: 111.3 kB / 412.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008837/0.2443, allocations: 0.6311 MB / 412.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.928e-05/0.2444, allocations: 58 kB / 412.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.2445, allocations: 87.94 kB / 413 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.2458, allocations: 0.8481 MB / 413.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.606e-05/0.2458, allocations: 11.94 kB / 413.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.485e-05/0.2459, allocations: 36 kB / 413.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.2459, allocations: 20 kB / 413.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008611/0.2468, allocations: 471.3 kB / 414.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00397/0.2508, allocations: 4.389 MB / 418.7 MB, free: 5.824 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006209/0.2514, allocations: 292.2 kB / 419 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002454/0.2517, allocations: 149.5 kB / 419.2 MB, free: 5.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002163/0.2519, allocations: 170.6 kB / 419.3 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/0.2519, allocations: 34.94 kB / 419.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.695e-06/0.2519, allocations: 0 / 419.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.00329/0.2552, allocations: 1.743 MB / 421.1 MB, free: 3.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/0.2553, allocations: 63.91 kB / 421.2 MB, free: 3.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006001/0.2559, allocations: 0.5353 MB / 421.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.658e-05/0.2559, allocations: 37.7 kB / 421.7 MB, free: 2.645 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003602/0.2563, allocations: 491.7 kB / 422.2 MB, free: 2.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.2565, allocations: 226.1 kB / 422.4 MB, free: 1.934 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.2567, allocations: 138.6 kB / 422.6 MB, free: 1.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.2568, allocations: 382.8 kB / 422.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.2571, allocations: 161.9 kB / 423.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004965/0.2576, allocations: 467.1 kB / 423.6 MB, free: 0.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008378/0.2585, allocations: 0.6595 MB / 424.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.2585, allocations: 4 kB / 424.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001116/0.2596, allocations: 0.7427 MB / 425 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.2597, allocations: 12 kB / 425 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.2597, allocations: 12.12 kB / 425 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001755/0.2599, allocations: 48.84 kB / 425 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005798/0.2605, allocations: 175.7 kB / 425.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/0.262, allocations: 1.697 MB / 426.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.2623, allocations: 28 kB / 426.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.86e-05/0.2623, allocations: 36 kB / 427 MB, free: 12.97 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.0003105/0.2626, allocations: 233.5 kB / 427.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.843e-05/0.2627, allocations: 79.53 kB / 427.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001284/0.2629, allocations: 83.02 kB / 427.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.2629, allocations: 4 kB / 427.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2629, allocations: 0 / 427.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.2629, allocations: 3.984 kB / 427.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.2648, allocations: 1.413 MB / 428.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2649, allocations: 4.281 kB / 428.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000464/0.2653, allocations: 119.9 kB / 428.9 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.017e-05/0.2654, allocations: 20.86 kB / 428.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.2655, allocations: 15.98 kB / 428.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.2665, allocations: 1.383 MB / 430.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.2665, allocations: 3.938 kB / 430.3 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.2676, allocations: 0.7856 MB / 431.1 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.2677, allocations: 144.6 kB / 431.2 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.094e-05/0.2678, allocations: 12 kB / 431.3 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.268, allocations: 12 kB / 431.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.662e-05/0.2681, allocations: 47.91 kB / 431.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.048e-05/0.2681, allocations: 24 kB / 431.3 MB, free: 8.262 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004137/0.2685, allocations: 355.1 kB / 431.7 MB, free: 7.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2685, allocations: 0 / 431.7 MB, free: 7.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006073/0.2691, allocations: 144 kB / 431.8 MB, free: 7.781 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.001349/0.2705, allocations: 1.337 MB / 433.2 MB, free: 6.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009366/0.2714, allocations: 0.5949 MB / 433.8 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2715, allocations: 1.562 kB / 433.8 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003987/0.2719, allocations: 311.4 kB / 434.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005885/0.2725, allocations: 91.28 kB / 434.2 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007635/0.2801, allocations: 6.08 MB / 440.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006055/0.2807, allocations: 0.9652 MB / 441.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002625/0.281, allocations: 89.86 kB / 441.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003956/0.2814, allocations: 323.3 kB / 441.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2814, allocations: 0 / 441.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03886/0.3203, allocations: 11.84 MB / 453.4 MB, free: 1.809 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.6, allocations: 15.33 kB / 453.5 MB, free: 1.797 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