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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00135/0.002366, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009029/0.0009029, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001258/0.002161, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9598/0.9598, allocations: 173.3 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0868/1.047, allocations: 52.5 MB / 238.3 MB, free: 4.426 MB / 234.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 239.5 MB, free: 3.18 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.343e-05, allocations: 6.875 kB / 239.5 MB, free: 3.172 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004561/0.004585, allocations: 4.368 MB / 243.9 MB, free: 14.79 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.006971, allocations: 1.375 MB / 245.3 MB, free: 13.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003909/0.007362, allocations: 31.75 kB / 245.3 MB, free: 13.38 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002942/0.007656, allocations: 182.1 kB / 245.5 MB, free: 13.2 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003544/0.008011, allocations: 186 kB / 245.7 MB, free: 13.01 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000719/0.00873, allocations: 367.4 kB / 246 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009458/0.009675, allocations: 0.9778 MB / 247 MB, free: 11.67 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004709/0.01015, allocations: 283.3 kB / 247.3 MB, free: 11.36 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007284/0.01087, allocations: 0.53 MB / 247.8 MB, free: 10.83 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002584/0.01113, allocations: 235.1 kB / 248.1 MB, free: 10.6 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.656e-05/0.01121, allocations: 72 kB / 248.1 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002102/0.01142, allocations: 115.9 kB / 248.2 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.851e-05/0.01151, allocations: 135.4 kB / 248.4 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001724/0.01168, allocations: 219.4 kB / 248.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006217/0.0123, allocations: 0.6456 MB / 249.2 MB, free: 9.422 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-05/0.01232, allocations: 0 / 249.2 MB, free: 9.422 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.01232, allocations: 0 / 249.2 MB, free: 9.422 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.405e-05/0.01235, allocations: 0 / 249.2 MB, free: 9.422 MB / 250.7 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.001147/0.01349, allocations: 1.251 MB / 250.5 MB, free: 8.145 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.01352, allocations: 8.031 kB / 250.5 MB, free: 8.137 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.01365, allocations: 135.9 kB / 250.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005568/0.01421, allocations: 0.4927 MB / 251.1 MB, free: 7.484 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/0.01424, allocations: 54 kB / 251.2 MB, free: 7.43 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.088e-05/0.01431, allocations: 87.95 kB / 251.2 MB, free: 7.344 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006733/0.01499, allocations: 0.7755 MB / 252 MB, free: 6.438 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.759e-05/0.01501, allocations: 11.89 kB / 252 MB, free: 6.426 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.521e-05/0.01505, allocations: 43.94 kB / 252.1 MB, free: 6.383 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.01506, allocations: 20 kB / 252.1 MB, free: 6.363 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002999/0.01536, allocations: 269.4 kB / 252.4 MB, free: 6.098 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.01747, allocations: 3.741 MB / 256.1 MB, free: 2.195 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002594/0.01773, allocations: 195.6 kB / 256.3 MB, free: 1.992 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.285e-05/0.0178, allocations: 73.53 kB / 256.4 MB, free: 1.918 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.205e-05/0.01789, allocations: 21.11 kB / 256.4 MB, free: 1.898 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.852e-05/0.01792, allocations: 34.56 kB / 256.4 MB, free: 1.855 MB / 250.7 MB Notification: Performance of pre-optimization done (n=46): time 2.244e-06/0.01792, allocations: 0 / 256.4 MB, free: 1.855 MB / 250.7 MB Notification: Performance of matching and sorting (n=57): time 0.001687/0.01961, allocations: 1.171 MB / 257.6 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.01964, allocations: 59.91 kB / 257.6 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000281/0.01992, allocations: 0.5114 MB / 258.2 MB, free: 36 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.01995, allocations: 33.78 kB / 258.2 MB, free: 15.99 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.0201, allocations: 420.9 kB / 258.6 MB, free: 15.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.286e-05/0.0202, allocations: 222 kB / 258.8 MB, free: 15.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.0203, allocations: 142.6 kB / 259 MB, free: 15.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.02042, allocations: 394.5 kB / 259.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.997e-05/0.02049, allocations: 61.97 kB / 259.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002204/0.02071, allocations: 375.2 kB / 259.8 MB, free: 14.26 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003493/0.02106, allocations: 0.5118 MB / 260.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.02107, allocations: 7.938 kB / 260.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0004572/0.02153, allocations: 479.3 kB / 260.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.02155, allocations: 12.22 kB / 260.8 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.02156, allocations: 11.98 kB / 260.8 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001238/0.02168, allocations: 40.84 kB / 260.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003687/0.02205, allocations: 219.6 kB / 261 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007676/0.02282, allocations: 1.406 MB / 262.4 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.02296, allocations: 32.03 kB / 262.5 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.484e-05/0.02299, allocations: 35.92 kB / 262.5 MB, free: 11.29 MB / 266.7 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.0001322/0.02312, allocations: 161.5 kB / 262.7 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.235e-05/0.02317, allocations: 63.94 kB / 262.7 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.554e-05/0.02324, allocations: 71.08 kB / 262.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.02324, allocations: 4 kB / 262.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.02325, allocations: 4 kB / 262.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.02325, allocations: 3.984 kB / 262.8 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008234/0.02408, allocations: 0.8153 MB / 263.6 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.02408, allocations: 4 kB / 263.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003043/0.02439, allocations: 139.9 kB / 263.8 MB, free: 9.957 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.875e-05/0.02444, allocations: 63.48 kB / 263.8 MB, free: 9.895 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-05/0.0245, allocations: 33.11 kB / 263.9 MB, free: 9.859 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.02452, allocations: 19.97 kB / 263.9 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000554/0.02508, allocations: 1.15 MB / 265 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.02508, allocations: 4 kB / 265 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000386/0.02547, allocations: 0.5088 MB / 265.5 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.382e-05/0.0255, allocations: 23.94 kB / 265.6 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.508e-05/0.0256, allocations: 12 kB / 265.6 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.644e-05/0.02564, allocations: 43.86 kB / 265.6 MB, free: 7.965 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.02566, allocations: 16 kB / 265.6 MB, free: 7.949 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001327/0.02579, allocations: 228.6 kB / 265.9 MB, free: 7.73 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02579, allocations: 0 / 265.9 MB, free: 7.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003504/0.02614, allocations: 140 kB / 266 MB, free: 7.594 MB / 266.7 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.0001134/0.02625, allocations: 100.3 kB / 266.1 MB, free: 7.488 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004096/0.02666, allocations: 460.3 kB / 266.5 MB, free: 7.027 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-05/0.02669, allocations: 20.48 kB / 266.6 MB, free: 7.004 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001599/0.02685, allocations: 247.9 kB / 266.8 MB, free: 6.746 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.0272, allocations: 151.2 kB / 267 MB, free: 6.602 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002311/0.02951, allocations: 1.435 MB / 268.4 MB, free: 5.094 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000115/0.02963, allocations: 167.1 kB / 268.6 MB, free: 4.91 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001723/0.0298, allocations: 86 kB / 268.6 MB, free: 4.824 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001758/0.02998, allocations: 167.3 kB / 268.8 MB, free: 4.66 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.02998, allocations: 0 / 268.8 MB, free: 4.66 MB / 266.7 MB Notification: Performance of Templates: time 0.009291/0.03927, allocations: 6.045 MB / 274.8 MB, free: 14.75 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7163562262430787]