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.001373/0.001373, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.369/1.369, allocations: 223.2 MB / 240.3 MB, free: 11.87 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.0009782/0.0009782, allocations: 95.52 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002685/0.0002685, allocations: 4 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2296, allocations: 50.4 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09903/0.3287, allocations: 83.04 MB / 484.5 MB, free: 13.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/0.3291, allocations: 79.95 kB / 484.6 MB, free: 13.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03741/0.3665, allocations: 14.67 MB / 499.3 MB, free: 14.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3666, allocations: 0 / 499.3 MB, free: 14.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.012e-05/0.3667, allocations: 20 kB / 499.3 MB, free: 14.45 MB / 378.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.002147/0.3688, allocations: 0.9665 MB / 0.4885 GB, free: 13.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3689, allocations: 12.03 kB / 0.4886 GB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/0.3691, allocations: 106.7 kB / 0.4887 GB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.3703, allocations: 0.5199 MB / 0.4892 GB, free: 12.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.801e-05/0.3704, allocations: 58 kB / 0.4892 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001717/0.3706, allocations: 84 kB / 0.4893 GB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.3722, allocations: 0.8325 MB / 0.4901 GB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.182e-05/0.3722, allocations: 7.906 kB / 0.4901 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-05/0.3723, allocations: 39.95 kB / 0.4902 GB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.777e-05/0.3723, allocations: 23.98 kB / 0.4902 GB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000953/0.3733, allocations: 479.2 kB / 0.4906 GB, free: 11.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004226/0.3775, allocations: 4.396 MB / 0.4949 GB, free: 6.539 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005433/0.3781, allocations: 299.5 kB / 0.4952 GB, free: 6.238 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002272/0.3783, allocations: 170.6 kB / 0.4954 GB, free: 6.035 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.3784, allocations: 42.94 kB / 0.4954 GB, free: 5.984 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 2.264e-06/0.3784, allocations: 0 / 0.4954 GB, free: 5.984 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.003273/0.3817, allocations: 1.735 MB / 0.4971 GB, free: 4.164 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.3817, allocations: 55.97 kB / 0.4972 GB, free: 4.098 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005393/0.3823, allocations: 475.2 kB / 0.4976 GB, free: 3.629 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.3823, allocations: 37.7 kB / 0.4977 GB, free: 3.586 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003475/0.3827, allocations: 486.4 kB / 0.4981 GB, free: 3.102 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/0.3828, allocations: 209 kB / 0.4983 GB, free: 2.895 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.623e-05/0.3829, allocations: 16 kB / 0.4983 GB, free: 2.879 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3831, allocations: 382.8 kB / 0.4987 GB, free: 2.496 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002783/0.3833, allocations: 157.9 kB / 0.4988 GB, free: 2.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004935/0.3838, allocations: 459.1 kB / 0.4993 GB, free: 1.762 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003716/0.3842, allocations: 232.7 kB / 0.4995 GB, free: 1.531 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.3842, allocations: 8 kB / 0.4995 GB, free: 1.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001075/0.3853, allocations: 0.7229 MB / 0.5002 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.3854, allocations: 23.95 kB / 0.5002 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.3854, allocations: 8 kB / 0.5003 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001608/0.3855, allocations: 48.84 kB / 0.5003 GB, free: 0.707 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005658/0.3861, allocations: 183.7 kB / 0.5005 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.19/0.5761, allocations: 1.511 MB / 0.502 GB, free: 93.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005448/0.5767, allocations: 31.2 kB / 0.502 GB, free: 93.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.799e-05/0.5768, allocations: 38.25 kB / 0.502 GB, free: 93.74 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004299/0.5773, allocations: 231.6 kB / 0.5022 GB, free: 93.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.5774, allocations: 73.66 kB / 0.5023 GB, free: 93.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001274/0.5775, allocations: 76.98 kB / 0.5024 GB, free: 93.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.5775, allocations: 6.016 kB / 0.5024 GB, free: 93.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.5775, allocations: 3.094 kB / 0.5024 GB, free: 93.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.5775, allocations: 2.766 kB / 0.5024 GB, free: 93.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002084/0.5796, allocations: 1.427 MB / 0.5038 GB, free: 93.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.5796, allocations: 3 kB / 0.5038 GB, free: 93.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000516/0.5802, allocations: 114.5 kB / 0.5039 GB, free: 93.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001022/0.5803, allocations: 28.66 kB / 0.5039 GB, free: 93.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.411e-05/0.5803, allocations: 14.52 kB / 0.5039 GB, free: 93.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006209/0.5809, allocations: 1.277 MB / 0.5052 GB, free: 91.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.581, allocations: 5.219 kB / 0.5052 GB, free: 91.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.5821, allocations: 0.9084 MB / 0.5061 GB, free: 91.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.5822, allocations: 136.5 kB / 0.5062 GB, free: 91.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.895e-05/0.5823, allocations: 16 kB / 0.5062 GB, free: 91.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.5825, allocations: 16.09 kB / 0.5062 GB, free: 91.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.5826, allocations: 45.27 kB / 0.5063 GB, free: 91.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-05/0.5827, allocations: 17.05 kB / 0.5063 GB, free: 91.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004252/0.5831, allocations: 359 kB / 0.5066 GB, free: 91.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5831, allocations: 2.844 kB / 0.5066 GB, free: 91.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006521/0.5838, allocations: 138.4 kB / 0.5068 GB, free: 91.28 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001463/0.5839, allocations: 121.1 kB / 0.5069 GB, free: 91.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.5849, allocations: 0.5923 MB / 0.5075 GB, free: 91.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.585, allocations: 1.094 kB / 0.5075 GB, free: 91.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003918/0.5854, allocations: 308.3 kB / 0.5078 GB, free: 90.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000436/0.5858, allocations: 80.09 kB / 0.5078 GB, free: 90.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.5881, allocations: 2.294 MB / 0.5101 GB, free: 89.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.5884, allocations: 0.9867 MB / 0.511 GB, free: 88.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002528/0.5886, allocations: 88.23 kB / 0.5111 GB, free: 88.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.992e-05/0.5888, allocations: 56.45 kB / 0.5112 GB, free: 88.87 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5888, allocations: 192 / 0.5112 GB, free: 88.87 MB / 378.7 MB Notification: Performance of Templates: time 0.008318/0.5971, allocations: 4.839 MB / 0.5159 GB, free: 88.56 MB / 378.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/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