Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 191.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 226.5 MB / 243.4 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006873/0.0006872, allocations: 104.2 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3162/0.3162, allocations: 44.81 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002478/0.0002479, allocations: 8 kB / 465.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3046, allocations: 62.97 MB / 0.5159 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.00075/0.3054, allocations: 208 kB / 0.5161 GB, free: 37.21 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.3074, allocations: 1.202 MB / 0.5172 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.267e-05/0.3074, allocations: 0 / 0.5172 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.097e-05/0.3075, allocations: 0 / 0.5172 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002322/0.3077, allocations: 19.45 kB / 0.5173 GB, free: 36.37 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:455:3-487:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008448/0.3086, allocations: 189.2 kB / 0.5174 GB, free: 36.28 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.583e-05/0.3086, allocations: 6.828 kB / 0.5174 GB, free: 36.28 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.463e-05/0.3087, allocations: 3.984 kB / 0.5174 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.071e-05/0.3087, allocations: 6.781 kB / 0.5175 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.803e-05/0.3088, allocations: 17.25 kB / 0.5175 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.873e-06/0.3088, allocations: 0 / 0.5175 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001367/0.3102, allocations: 0.573 MB / 0.518 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.088e-05/0.3102, allocations: 3.984 kB / 0.518 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.328e-05/0.3102, allocations: 32.67 kB / 0.5181 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.3104, allocations: 119.3 kB / 0.5182 GB, free: 36.04 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3104, allocations: 0 / 0.5182 GB, free: 36.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3104, allocations: 0 / 0.5182 GB, free: 36.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.3105, allocations: 4 kB / 0.5182 GB, free: 36.03 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003509/0.3108, allocations: 382.5 kB / 0.5185 GB, free: 35.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.3109, allocations: 8.938 kB / 0.5186 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.538e-05/0.3109, allocations: 0.9375 kB / 0.5186 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.764e-05/0.311, allocations: 165 kB / 0.5187 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.311, allocations: 384 / 0.5187 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.311, allocations: 384 / 0.5187 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.477e-05/0.3111, allocations: 36.25 kB / 0.5187 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.3111, allocations: 4 kB / 0.5188 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.3112, allocations: 7.938 kB / 0.5188 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.3112, allocations: 0 / 0.5188 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.942e-05/0.3112, allocations: 3.031 kB / 0.5188 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001118/0.3113, allocations: 149.6 kB / 0.5189 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.384e-05/0.3114, allocations: 20.88 kB / 0.5189 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.563e-05/0.3114, allocations: 7.766 kB / 0.5189 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.797e-06/0.3114, allocations: 0 / 0.5189 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/0.3114, allocations: 68.2 kB / 0.519 GB, free: 35.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.533e-06/0.3114, allocations: 0 / 0.519 GB, free: 35.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001813/0.3116, allocations: 71.47 kB / 0.5191 GB, free: 35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.3117, allocations: 80.17 kB / 0.5191 GB, free: 34.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.889e-05/0.3117, allocations: 97.67 kB / 0.5192 GB, free: 34.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.666e-06/0.3118, allocations: 25.7 kB / 0.5193 GB, free: 34.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.719e-05/0.3118, allocations: 80.39 kB / 0.5193 GB, free: 34.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.612e-05/0.3118, allocations: 4 kB / 0.5193 GB, free: 34.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-06/0.3118, allocations: 0 / 0.5193 GB, free: 34.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.366e-05/0.3119, allocations: 314 kB / 0.5196 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.799e-06/0.3119, allocations: 3.188 kB / 0.5196 GB, free: 34.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.122e-06/0.3119, allocations: 0 / 0.5196 GB, free: 34.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.476e-05/0.3119, allocations: 63.17 kB / 0.5197 GB, free: 34.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.3119, allocations: 0 / 0.5197 GB, free: 34.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.599e-05/0.312, allocations: 79.27 kB / 0.5198 GB, free: 34.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.3121, allocations: 35.8 kB / 0.5198 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3121, allocations: 0 / 0.5198 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3121, allocations: 0 / 0.5198 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.3121, allocations: 0 / 0.5198 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.3121, allocations: 0 / 0.5198 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.575e-05/0.3121, allocations: 2.844 kB / 0.5198 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.3121, allocations: 0 / 0.5198 GB, free: 34.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.454e-05/0.3122, allocations: 137.8 kB / 0.5199 GB, free: 34.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.686e-06/0.3122, allocations: 3.938 kB / 0.5199 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.004e-05/0.3122, allocations: 10.72 kB / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.3122, allocations: 2.938 kB / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3122, allocations: 0 / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3123, allocations: 0 / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.454e-05/0.3123, allocations: 152.1 kB / 0.5201 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.3123, allocations: 0 / 0.5201 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.984e-06/0.3123, allocations: 3.938 kB / 0.5201 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3123, allocations: 0 / 0.5201 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.3124, allocations: 0 / 0.5201 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3124, allocations: 0 / 0.5201 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3124, allocations: 2.906 kB / 0.5201 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.742e-05/0.3124, allocations: 101.8 kB / 0.5202 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.16e-05/0.3125, allocations: 85.03 kB / 0.5203 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.3125, allocations: 0 / 0.5203 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.103e-05/0.3125, allocations: 6.406 kB / 0.5203 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.096e-05/0.3125, allocations: 0 / 0.5203 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-06/0.3125, allocations: 0 / 0.5203 GB, free: 33.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.839e-05/0.3126, allocations: 81.78 kB / 0.5204 GB, free: 33.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3126, allocations: 0 / 0.5204 GB, free: 33.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002996/0.3129, allocations: 63.22 kB / 0.5204 GB, free: 33.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00061/0.3135, allocations: 338.5 kB / 0.5208 GB, free: 33.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.693e-05/0.3136, allocations: 61.25 kB / 0.5208 GB, free: 33.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3136, allocations: 0 / 0.5208 GB, free: 33.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.299e-05/0.3136, allocations: 62.38 kB / 0.5209 GB, free: 33.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.3138, allocations: 7.219 kB / 0.5209 GB, free: 33.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001948/0.314, allocations: 104.9 kB / 0.521 GB, free: 33.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.3141, allocations: 0.679 MB / 0.5216 GB, free: 32.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.072e-05/0.3141, allocations: 7.438 kB / 0.5217 GB, free: 32.38 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.3141, allocations: 0 / 0.5217 GB, free: 32.38 MB / 378.7 MB Notification: Performance of Templates: time 0.003388/0.3175, allocations: 1.668 MB / 0.5233 GB, free: 32.2 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches