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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001149, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009584/0.0009584, allocations: 103.8 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008271/0.0008271, allocations: 43.94 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2096, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004294/0.214, allocations: 4.571 MB / 404 MB, free: 28.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.2156, allocations: 1.3 MB / 405.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002605/0.2159, allocations: 23.88 kB / 405.4 MB, free: 27.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002697/0.2162, allocations: 130.9 kB / 405.5 MB, free: 27.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002356/0.2165, allocations: 134.8 kB / 405.6 MB, free: 27.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.2169, allocations: 327.7 kB / 405.9 MB, free: 26.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005339/0.2175, allocations: 0.9196 MB / 406.9 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003715/0.2179, allocations: 386.9 kB / 407.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002204/0.2181, allocations: 290.5 kB / 407.5 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/0.2183, allocations: 330 kB / 407.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.03e-05/0.2184, allocations: 40 kB / 407.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001501/0.2185, allocations: 83.92 kB / 408 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.827e-05/0.2186, allocations: 143.3 kB / 408.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002021/0.2188, allocations: 393.5 kB / 408.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005279/0.2193, allocations: 0.9705 MB / 409.5 MB, free: 23.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2194, allocations: 0 / 409.5 MB, free: 23.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.2194, allocations: 0 / 409.5 MB, free: 23.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.2194, allocations: 0 / 409.5 MB, free: 23.32 MB / 298.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.001145/0.2205, allocations: 1.149 MB / 410.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.2206, allocations: 8.031 kB / 410.6 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.494e-05/0.2207, allocations: 106.8 kB / 410.7 MB, free: 22.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005975/0.2213, allocations: 0.5994 MB / 411.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.139e-05/0.2213, allocations: 58 kB / 411.4 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.946e-05/0.2214, allocations: 83.91 kB / 411.5 MB, free: 21.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009119/0.2223, allocations: 0.8442 MB / 412.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.872e-05/0.2224, allocations: 11.88 kB / 412.3 MB, free: 20.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.561e-05/0.2224, allocations: 40 kB / 412.4 MB, free: 20.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.2224, allocations: 20 kB / 412.4 MB, free: 20.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006703/0.2231, allocations: 471.3 kB / 412.8 MB, free: 19.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002266/0.2254, allocations: 4.412 MB / 417.2 MB, free: 15.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004241/0.2258, allocations: 295.6 kB / 417.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001793/0.226, allocations: 141.6 kB / 417.7 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002185/0.2262, allocations: 166.6 kB / 417.8 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.799e-05/0.2263, allocations: 42.88 kB / 417.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 2.925e-06/0.2263, allocations: 0 / 417.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.002481/0.2288, allocations: 1.737 MB / 419.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.986e-05/0.2288, allocations: 59.97 kB / 419.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003725/0.2292, allocations: 0.5353 MB / 420.2 MB, free: 12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.2292, allocations: 33.7 kB / 420.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.2294, allocations: 486.3 kB / 420.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.567e-05/0.2294, allocations: 212.9 kB / 420.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.2296, allocations: 138.6 kB / 421.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.698e-05/0.2296, allocations: 382.8 kB / 421.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002122/0.2299, allocations: 161.9 kB / 421.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.2302, allocations: 459.2 kB / 422 MB, free: 10 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005606/0.2307, allocations: 0.6673 MB / 422.7 MB, free: 9.203 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.2307, allocations: 4 kB / 422.7 MB, free: 9.199 MB / 298.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0008049/0.2316, allocations: 0.7424 MB / 423.5 MB, free: 8.445 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.2316, allocations: 8 kB / 423.5 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.2316, allocations: 15.94 kB / 423.5 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001265/0.2317, allocations: 48.88 kB / 423.5 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00046/0.2322, allocations: 179.7 kB / 423.7 MB, free: 8.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008019/0.233, allocations: 1.51 MB / 425.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.2333, allocations: 31.98 kB / 425.2 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.282e-05/0.2333, allocations: 36 kB / 425.3 MB, free: 6.484 MB / 298.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.0001871/0.2335, allocations: 237.5 kB / 425.5 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.473e-05/0.2336, allocations: 71.06 kB / 425.6 MB, free: 6.172 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.2337, allocations: 79.08 kB / 425.7 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2337, allocations: 8 kB / 425.7 MB, free: 6.082 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2337, allocations: 4 kB / 425.7 MB, free: 6.078 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2337, allocations: 3.984 kB / 425.7 MB, free: 6.074 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.235, allocations: 1.414 MB / 427.1 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.235, allocations: 4 kB / 427.1 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004029/0.2354, allocations: 123.8 kB / 427.2 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-05/0.2355, allocations: 16.86 kB / 427.2 MB, free: 4.406 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.2355, allocations: 16 kB / 427.2 MB, free: 4.391 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004672/0.236, allocations: 1.281 MB / 428.5 MB, free: 2.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.236, allocations: 4 kB / 428.5 MB, free: 2.977 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003589/0.2396, allocations: 4.425 MB / 433 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.742e-05/0.2397, allocations: 136.2 kB / 433.1 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.81e-05/0.2398, allocations: 19.94 kB / 433.1 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.24, allocations: 15.98 kB / 433.1 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.072e-05/0.2401, allocations: 39.98 kB / 433.2 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/0.2401, allocations: 16 kB / 433.2 MB, free: 13.99 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003397/0.2404, allocations: 367.1 kB / 433.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2404, allocations: 4.062 kB / 433.5 MB, free: 13.63 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006645/0.2411, allocations: 179.9 kB / 433.7 MB, free: 13.46 MB / 314.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.0001344/0.2412, allocations: 119.7 kB / 433.8 MB, free: 13.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008344/0.2421, allocations: 0.5846 MB / 434.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2421, allocations: 0 / 434.4 MB, free: 12.73 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003602/0.2425, allocations: 303.2 kB / 434.7 MB, free: 12.42 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005544/0.243, allocations: 102 kB / 434.8 MB, free: 12.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003131/0.2462, allocations: 2.691 MB / 437.5 MB, free: 9.547 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/0.2467, allocations: 0.9732 MB / 438.5 MB, free: 8.547 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000286/0.247, allocations: 89.92 kB / 438.6 MB, free: 8.457 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.2471, allocations: 59.42 kB / 438.6 MB, free: 8.398 MB / 314.7 MB Notification: Performance of SimCode: time 4.71e-07/0.2471, allocations: 0 / 438.6 MB, free: 8.398 MB / 314.7 MB Notification: Performance of Templates: time 0.01023/0.2573, allocations: 5.775 MB / 444.4 MB, free: 2.648 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (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=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches