Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_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.001144/0.001144, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001236/0.001236, allocations: 187 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.279/1.279, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08325/0.08444, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005441/0.08992, allocations: 4.565 MB / 379.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1693/0.2593, allocations: 1.361 MB / 380.6 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007051/0.2601, allocations: 25.53 kB / 380.6 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005274/0.2606, allocations: 177.6 kB / 380.8 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006225/0.2613, allocations: 163.8 kB / 380.9 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009647/0.2622, allocations: 363.5 kB / 381.3 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00122/0.2635, allocations: 0.9814 MB / 382.3 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006206/0.2641, allocations: 423.2 kB / 382.7 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004872/0.2646, allocations: 332.2 kB / 383 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003599/0.265, allocations: 341 kB / 383.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.516e-05/0.2651, allocations: 71.81 kB / 383.4 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002349/0.2653, allocations: 118.6 kB / 383.5 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.2654, allocations: 177.8 kB / 383.7 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000278/0.2657, allocations: 427.6 kB / 384.1 MB, free: 8.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.2667, allocations: 1.098 MB / 385.2 MB, free: 7.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2668, allocations: 0 / 385.2 MB, free: 7.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2668, allocations: 0 / 385.2 MB, free: 7.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.2668, allocations: 0.6094 kB / 385.2 MB, free: 7.664 MB / 318.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.001311/0.2681, allocations: 1.144 MB / 386.3 MB, free: 6.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.2681, allocations: 9.469 kB / 386.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.2683, allocations: 127.6 kB / 386.5 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.2684, allocations: 106.4 kB / 386.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008358/0.2692, allocations: 0.6296 MB / 387.2 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.2693, allocations: 57.69 kB / 387.3 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.183e-05/0.2694, allocations: 84.98 kB / 387.4 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.2705, allocations: 0.8436 MB / 388.2 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.442e-05/0.2705, allocations: 16.72 kB / 388.2 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.248e-05/0.2706, allocations: 33.94 kB / 388.2 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.2706, allocations: 26.19 kB / 388.3 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008151/0.2714, allocations: 470.2 kB / 388.7 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002729/0.2742, allocations: 4.367 MB / 393.1 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005134/0.2747, allocations: 302.8 kB / 393.4 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/0.2749, allocations: 148.6 kB / 393.5 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001504/0.2751, allocations: 174.6 kB / 393.7 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.2751, allocations: 41.31 kB / 393.7 MB, free: 1.422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 2.074e-06/0.2751, allocations: 4 kB / 393.8 MB, free: 1.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.002872/0.278, allocations: 1.729 MB / 395.5 MB, free: 368 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.202e-05/0.278, allocations: 61.78 kB / 395.5 MB, free: 300 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005207/0.2786, allocations: 0.5435 MB / 396.1 MB, free: 36 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.2786, allocations: 32.22 kB / 396.1 MB, free: 0 / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003227/0.2789, allocations: 479.1 kB / 396.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.2791, allocations: 209.3 kB / 396.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001648/0.2792, allocations: 143.9 kB / 396.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.2794, allocations: 379.3 kB / 397.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002766/0.2797, allocations: 166.8 kB / 397.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004417/0.2801, allocations: 457.4 kB / 397.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007668/0.2809, allocations: 0.6615 MB / 398.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.2809, allocations: 3.781 kB / 398.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001101/0.282, allocations: 0.7414 MB / 399.3 MB, free: 13.65 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.2821, allocations: 9.375 kB / 399.3 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.2821, allocations: 10.03 kB / 399.3 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001642/0.2823, allocations: 46.84 kB / 399.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005545/0.2828, allocations: 185.8 kB / 399.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.2841, allocations: 1.69 MB / 401.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003039/0.2844, allocations: 32.97 kB / 401.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.625e-05/0.2845, allocations: 37.78 kB / 401.3 MB, free: 11.95 MB / 334.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.0002935/0.2848, allocations: 236.2 kB / 401.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.277e-05/0.2849, allocations: 74.14 kB / 401.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001304/0.285, allocations: 73.34 kB / 401.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.285, allocations: 5.828 kB / 401.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.285, allocations: 1 kB / 401.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.2851, allocations: 3.859 kB / 401.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002013/0.2871, allocations: 1.413 MB / 403.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.2871, allocations: 3.359 kB / 403.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00046/0.2876, allocations: 117.6 kB / 403.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.019e-05/0.2877, allocations: 27.33 kB / 403.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.231e-05/0.2877, allocations: 16.48 kB / 403.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009667/0.2887, allocations: 1.372 MB / 404.7 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.2887, allocations: 2.75 kB / 404.7 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.2898, allocations: 0.7682 MB / 405.4 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.2899, allocations: 142.1 kB / 405.6 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.172e-05/0.29, allocations: 22.34 kB / 405.6 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.2902, allocations: 18.75 kB / 405.6 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.906e-05/0.2903, allocations: 40.3 kB / 405.6 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.2903, allocations: 17.83 kB / 405.7 MB, free: 8.707 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004298/0.2908, allocations: 363.4 kB / 406 MB, free: 8.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2908, allocations: 0 / 406 MB, free: 8.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006723/0.2914, allocations: 138.6 kB / 406.1 MB, free: 8.523 MB / 334.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.001268/0.2927, allocations: 1.348 MB / 407.5 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.2938, allocations: 0.5922 MB / 408.1 MB, free: 7.199 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2938, allocations: 1.281 kB / 408.1 MB, free: 7.199 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004092/0.2942, allocations: 304.8 kB / 408.4 MB, free: 7.027 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006308/0.2949, allocations: 100.4 kB / 408.5 MB, free: 6.977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007955/0.3028, allocations: 6.034 MB / 414.5 MB, free: 2.922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005916/0.3034, allocations: 0.9651 MB / 415.5 MB, free: 2.141 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002981/0.3038, allocations: 88.8 kB / 415.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003737/0.3041, allocations: 327.6 kB / 415.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3041, allocations: 0 / 415.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03637/0.3405, allocations: 12.01 MB / 427.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.35, allocations: 7.984 kB / 427.9 MB, free: 7.617 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches