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.001293/0.001293, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001325/0.001325, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.351/1.351, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001777/0.001777, allocations: 59.91 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08986/0.09165, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005995/0.09768, allocations: 4.557 MB / 379.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1656/0.2633, allocations: 1.362 MB / 380.6 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003914/0.2639, allocations: 24.97 kB / 380.6 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003436/0.2642, allocations: 177.7 kB / 380.8 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003125/0.2645, allocations: 164 kB / 380.9 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007039/0.2652, allocations: 368.5 kB / 381.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008481/0.2661, allocations: 0.9862 MB / 382.3 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005759/0.2667, allocations: 418 kB / 382.7 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004327/0.2671, allocations: 324.1 kB / 383 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003466/0.2675, allocations: 346.8 kB / 383.3 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.2676, allocations: 71.81 kB / 383.4 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.2678, allocations: 117.4 kB / 383.5 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.2679, allocations: 174.6 kB / 383.7 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002625/0.2682, allocations: 427.3 kB / 384.1 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001068/0.2693, allocations: 1.102 MB / 385.2 MB, free: 7.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2693, allocations: 0.75 kB / 385.2 MB, free: 7.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2693, allocations: 0 / 385.2 MB, free: 7.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.2693, allocations: 4 kB / 385.2 MB, free: 7.688 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.001387/0.2707, allocations: 1.17 MB / 386.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.2707, allocations: 13.22 kB / 386.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.2709, allocations: 129.3 kB / 386.5 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.271, allocations: 111.4 kB / 386.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008084/0.2718, allocations: 0.6293 MB / 387.3 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.38e-05/0.2719, allocations: 61.91 kB / 387.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.283e-05/0.272, allocations: 85.39 kB / 387.4 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.2732, allocations: 0.8466 MB / 388.2 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.515e-05/0.2732, allocations: 9.672 kB / 388.3 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.206e-05/0.2733, allocations: 34.12 kB / 388.3 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.2733, allocations: 21 kB / 388.3 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008459/0.2741, allocations: 474.5 kB / 388.8 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002794/0.2769, allocations: 4.379 MB / 393.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005234/0.2775, allocations: 305 kB / 393.5 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002188/0.2777, allocations: 144 kB / 393.6 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001508/0.2779, allocations: 170.2 kB / 393.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.2779, allocations: 37.06 kB / 393.8 MB, free: 1.402 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 2.254e-06/0.2779, allocations: 1.031 kB / 393.8 MB, free: 1.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.002955/0.2809, allocations: 1.748 MB / 395.5 MB, free: 336 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.2809, allocations: 58.53 kB / 395.6 MB, free: 272 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005531/0.2815, allocations: 0.5429 MB / 396.1 MB, free: 8 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.473e-05/0.2815, allocations: 36.7 kB / 396.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003855/0.2819, allocations: 490.3 kB / 396.7 MB, free: 15.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.2821, allocations: 224.5 kB / 396.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.2823, allocations: 146.1 kB / 397 MB, free: 15.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002309/0.2825, allocations: 381.3 kB / 397.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000293/0.2828, allocations: 159.2 kB / 397.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005551/0.2834, allocations: 457.1 kB / 398 MB, free: 14.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008849/0.2843, allocations: 0.6792 MB / 398.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2843, allocations: 1.531 kB / 398.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001178/0.2855, allocations: 0.7383 MB / 399.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.2855, allocations: 14.09 kB / 399.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.2856, allocations: 9.375 kB / 399.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001743/0.2857, allocations: 47.91 kB / 399.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005458/0.2863, allocations: 182 kB / 399.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.2879, allocations: 1.695 MB / 401.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002969/0.2882, allocations: 26.58 kB / 401.4 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.741e-05/0.2883, allocations: 37.31 kB / 401.4 MB, free: 11.89 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.0003132/0.2886, allocations: 239.5 kB / 401.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.994e-05/0.2887, allocations: 76.06 kB / 401.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.2888, allocations: 77.98 kB / 401.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.2888, allocations: 6.125 kB / 401.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.2888, allocations: 0 / 401.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.2889, allocations: 6.172 kB / 401.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/0.2909, allocations: 1.406 MB / 403.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.2909, allocations: 7.797 kB / 403.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004633/0.2914, allocations: 120.7 kB / 403.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.378e-05/0.2915, allocations: 19.31 kB / 403.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.536e-05/0.2915, allocations: 16.02 kB / 403.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.2926, allocations: 1.377 MB / 404.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.2926, allocations: 2.75 kB / 404.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.2937, allocations: 0.7772 MB / 405.5 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.2938, allocations: 145.4 kB / 405.7 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.674e-05/0.2939, allocations: 15.94 kB / 405.7 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/0.2941, allocations: 13.86 kB / 405.7 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.345e-05/0.2942, allocations: 47.86 kB / 405.8 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.709e-05/0.2942, allocations: 17.73 kB / 405.8 MB, free: 8.629 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004585/0.2947, allocations: 359.5 kB / 406.1 MB, free: 8.469 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2947, allocations: 0 / 406.1 MB, free: 8.469 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006516/0.2953, allocations: 138.3 kB / 406.3 MB, free: 8.449 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.001486/0.2968, allocations: 1.341 MB / 407.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.2979, allocations: 0.5964 MB / 408.2 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.2979, allocations: 1.281 kB / 408.2 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000441/0.2983, allocations: 317.8 kB / 408.5 MB, free: 6.945 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000633/0.299, allocations: 100.6 kB / 408.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008252/0.3073, allocations: 6.07 MB / 414.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000688/0.308, allocations: 0.9686 MB / 415.6 MB, free: 2.035 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000291/0.3083, allocations: 89.19 kB / 415.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004245/0.3087, allocations: 322.2 kB / 416 MB, free: 1.719 MB / 334.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3087, allocations: 1.125 kB / 416 MB, free: 1.719 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04186/0.3506, allocations: 11.85 MB / 427.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.75, allocations: 0 / 427.9 MB, free: 7.691 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