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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 213.5 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 59.92 kB / 347.2 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2469, allocations: 49.15 MB / 396.3 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005073/0.252, allocations: 4.089 MB / 400.4 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002732/0.2547, allocations: 1.335 MB / 401.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008565/0.2556, allocations: 34.44 kB / 401.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000564/0.2562, allocations: 178.9 kB / 402 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006896/0.2569, allocations: 168 kB / 402.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009531/0.2578, allocations: 370.8 kB / 402.5 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.259, allocations: 0.9763 MB / 403.5 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005218/0.2596, allocations: 270.8 kB / 403.7 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000576/0.2601, allocations: 338.5 kB / 404.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005068/0.2607, allocations: 301.2 kB / 404.4 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.2608, allocations: 75.98 kB / 404.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002982/0.2611, allocations: 115.7 kB / 404.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.2612, allocations: 172.4 kB / 404.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002462/0.2615, allocations: 335.6 kB / 405 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001148/0.2626, allocations: 1.112 MB / 406.2 MB, free: 2.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2626, allocations: 4 kB / 406.2 MB, free: 2.883 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2626, allocations: 3.938 kB / 406.2 MB, free: 2.879 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.724e-05/0.2627, allocations: 0 / 406.2 MB, free: 2.879 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.00152/0.2642, allocations: 1.095 MB / 407.3 MB, free: 2.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.2642, allocations: 13.58 kB / 407.3 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001175/0.2643, allocations: 126.8 kB / 407.4 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.2645, allocations: 110.9 kB / 407.5 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009335/0.2654, allocations: 0.5501 MB / 408.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.481e-05/0.2655, allocations: 58.34 kB / 408.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.2656, allocations: 92.84 kB / 408.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.2668, allocations: 0.843 MB / 409 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.118e-05/0.2668, allocations: 9.281 kB / 409.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.208e-05/0.2668, allocations: 33.62 kB / 409.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.2669, allocations: 22 kB / 409.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008165/0.2677, allocations: 466 kB / 409.6 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004007/0.2717, allocations: 4.173 MB / 413.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006417/0.2723, allocations: 289.9 kB / 414 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002342/0.2726, allocations: 126.7 kB / 414.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001468/0.2727, allocations: 23.8 kB / 414.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.2728, allocations: 38.34 kB / 414.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.635e-06/0.2728, allocations: 0 / 414.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003436/0.2762, allocations: 1.598 MB / 415.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/0.2762, allocations: 65.36 kB / 415.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006868/0.2769, allocations: 0.5466 MB / 416.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.277, allocations: 31.89 kB / 416.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003897/0.2774, allocations: 0.4901 MB / 416.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.2775, allocations: 220.4 kB / 417.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.2777, allocations: 133.7 kB / 417.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002229/0.2779, allocations: 382.6 kB / 417.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/0.2782, allocations: 163.9 kB / 417.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005473/0.2788, allocations: 461.5 kB / 418.3 MB, free: 9.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000905/0.2797, allocations: 0.6634 MB / 418.9 MB, free: 9.164 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.2797, allocations: 2.094 kB / 418.9 MB, free: 9.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001223/0.2809, allocations: 0.7443 MB / 419.7 MB, free: 8.781 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.2809, allocations: 12.47 kB / 419.7 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.281, allocations: 10.12 kB / 419.7 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000175/0.2811, allocations: 51.56 kB / 419.7 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005526/0.2817, allocations: 180.5 kB / 419.9 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/0.2832, allocations: 1.574 MB / 421.5 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003573/0.2836, allocations: 36.7 kB / 421.5 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.771e-05/0.2836, allocations: 33.88 kB / 421.6 MB, free: 7.137 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.0003526/0.284, allocations: 237.1 kB / 421.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.2841, allocations: 76.94 kB / 421.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001227/0.2842, allocations: 76.48 kB / 421.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.2842, allocations: 6.25 kB / 422 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.2842, allocations: 1.156 kB / 422 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.2842, allocations: 3.984 kB / 422 MB, free: 6.828 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.2863, allocations: 1.275 MB / 423.2 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.2863, allocations: 3.062 kB / 423.2 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004781/0.2868, allocations: 115.2 kB / 423.4 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.552e-05/0.2869, allocations: 26.22 kB / 423.4 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.2869, allocations: 14.5 kB / 423.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.288, allocations: 1.266 MB / 424.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.288, allocations: 2.406 kB / 424.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.2891, allocations: 0.7825 MB / 425.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.2893, allocations: 59.72 kB / 425.5 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.906e-05/0.2893, allocations: 18.53 kB / 425.5 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.2895, allocations: 18.06 kB / 425.5 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8e-05/0.2896, allocations: 43.73 kB / 425.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.2896, allocations: 16.69 kB / 425.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004359/0.2901, allocations: 366.9 kB / 426 MB, free: 3.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2901, allocations: 3.938 kB / 426 MB, free: 3.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006869/0.2908, allocations: 137.9 kB / 426.1 MB, free: 3.707 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.001421/0.2922, allocations: 1.338 MB / 427.4 MB, free: 2.641 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.2932, allocations: 0.5706 MB / 428 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.2932, allocations: 0 / 428 MB, free: 2.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004288/0.2937, allocations: 291.8 kB / 428.3 MB, free: 1.922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006463/0.2943, allocations: 119.5 kB / 428.4 MB, free: 1.801 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008394/0.3027, allocations: 6.058 MB / 434.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.3031, allocations: 378.2 kB / 434.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002894/0.3034, allocations: 93.84 kB / 434.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000408/0.3038, allocations: 323.3 kB / 435.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3038, allocations: 0 / 435.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04662/0.3504, allocations: 12.55 MB / 447.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.35, allocations: 8.016 kB / 447.8 MB, free: 13.89 MB / 366.1 MB " [Timeout remaining time 648] (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 --stepSize=0.001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.825741169042885]