Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 198.4 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 226.6 MB / 243.4 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008464/0.0008464, allocations: 97 kB / 295.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2897/0.2897, allocations: 44.81 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002584/0.0002585, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2955, allocations: 62.96 MB / 0.5159 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0004544/0.296, allocations: 212.9 kB / 0.5161 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007735/0.2968, allocations: 0.7475 MB / 0.5168 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.581e-05/0.2968, allocations: 0 / 0.5168 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.345e-06/0.2968, allocations: 0 / 0.5168 GB, free: 36.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.2969, allocations: 6.938 kB / 0.5168 GB, free: 36.39 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.ReadFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0003549/0.2973, allocations: 44.91 kB / 0.5169 GB, free: 36.37 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.274e-05/0.2973, allocations: 0 / 0.5169 GB, free: 36.37 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.249e-05/0.2974, allocations: 10.28 kB / 0.5169 GB, free: 36.36 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.542e-05/0.2974, allocations: 3.984 kB / 0.5169 GB, free: 36.36 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.701e-05/0.2975, allocations: 6.906 kB / 0.5169 GB, free: 36.36 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.923e-06/0.2975, allocations: 0 / 0.5169 GB, free: 36.36 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.637e-05/0.2976, allocations: 50.06 kB / 0.5169 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.783e-06/0.2976, allocations: 0 / 0.5169 GB, free: 36.34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.338e-05/0.2976, allocations: 28.52 kB / 0.5169 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.193e-05/0.2977, allocations: 33.31 kB / 0.517 GB, free: 36.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2977, allocations: 4 kB / 0.517 GB, free: 36.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2977, allocations: 0 / 0.517 GB, free: 36.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.496e-06/0.2977, allocations: 2.75 kB / 0.517 GB, free: 36.29 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.0001952/0.2979, allocations: 350.1 kB / 0.5173 GB, free: 35.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.873e-05/0.298, allocations: 8.688 kB / 0.5173 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.428e-05/0.298, allocations: 0.9375 kB / 0.5173 GB, free: 35.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.377e-05/0.2981, allocations: 160.4 kB / 0.5175 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.2981, allocations: 7.375 kB / 0.5175 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.272e-06/0.2981, allocations: 384 / 0.5175 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.265e-05/0.2982, allocations: 39.95 kB / 0.5175 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.2982, allocations: 192 / 0.5175 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-06/0.2982, allocations: 3.938 kB / 0.5175 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.2982, allocations: 0 / 0.5175 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.708e-05/0.2982, allocations: 2.594 kB / 0.5175 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.425e-05/0.2983, allocations: 145.2 kB / 0.5177 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.795e-05/0.2983, allocations: 17.67 kB / 0.5177 GB, free: 35.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.203e-05/0.2984, allocations: 15.62 kB / 0.5177 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-06/0.2984, allocations: 4 kB / 0.5177 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.2984, allocations: 64.14 kB / 0.5178 GB, free: 35.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.2984, allocations: 0 / 0.5178 GB, free: 35.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001226/0.2985, allocations: 67.47 kB / 0.5178 GB, free: 35.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.28e-05/0.2986, allocations: 81.05 kB / 0.5179 GB, free: 35.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.805e-05/0.2986, allocations: 96.7 kB / 0.518 GB, free: 35.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.911e-06/0.2986, allocations: 25.95 kB / 0.518 GB, free: 35.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.103e-05/0.2986, allocations: 84.14 kB / 0.5181 GB, free: 34.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.104e-05/0.2987, allocations: 0 / 0.5181 GB, free: 34.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.284e-06/0.2987, allocations: 3.5 kB / 0.5181 GB, free: 34.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.238e-05/0.2987, allocations: 313.8 kB / 0.5184 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.793e-06/0.2987, allocations: 0 / 0.5184 GB, free: 34.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.019e-06/0.2987, allocations: 0 / 0.5184 GB, free: 34.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.862e-05/0.2988, allocations: 63.92 kB / 0.5185 GB, free: 34.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2988, allocations: 4.062 kB / 0.5185 GB, free: 34.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.242e-05/0.2988, allocations: 67.36 kB / 0.5185 GB, free: 34.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.2989, allocations: 31.55 kB / 0.5186 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.2989, allocations: 3.938 kB / 0.5186 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.2989, allocations: 0 / 0.5186 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.2989, allocations: 0 / 0.5186 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.2989, allocations: 0 / 0.5186 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.518e-05/0.2989, allocations: 6.938 kB / 0.5186 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.2989, allocations: 0 / 0.5186 GB, free: 34.47 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 4.838e-05/0.299, allocations: 142 kB / 0.5187 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.512e-06/0.299, allocations: 0 / 0.5187 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.386e-06/0.299, allocations: 10.66 kB / 0.5187 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.299, allocations: 0 / 0.5187 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.299, allocations: 2.969 kB / 0.5187 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.299, allocations: 3.938 kB / 0.5187 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.745e-05/0.2991, allocations: 148.9 kB / 0.5189 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.2991, allocations: 0 / 0.5189 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.2991, allocations: 2.969 kB / 0.5189 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.2991, allocations: 0 / 0.5189 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.2991, allocations: 3.938 kB / 0.5189 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.2991, allocations: 4 kB / 0.5189 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2991, allocations: 0 / 0.5189 GB, free: 34.12 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.519e-05/0.2992, allocations: 93.88 kB / 0.519 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.419e-05/0.2992, allocations: 81.05 kB / 0.5191 GB, free: 33.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.183e-05/0.2992, allocations: 10.19 kB / 0.5191 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-06/0.2992, allocations: 0 / 0.5191 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.887e-06/0.2993, allocations: 0 / 0.5191 GB, free: 33.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.2993, allocations: 6.938 kB / 0.5191 GB, free: 33.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.444e-05/0.2993, allocations: 75.28 kB / 0.5191 GB, free: 33.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2993, allocations: 0 / 0.5191 GB, free: 33.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001969/0.2995, allocations: 16.88 kB / 0.5192 GB, free: 33.83 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.0003038/0.2998, allocations: 199.9 kB / 0.5193 GB, free: 33.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.034e-05/0.2999, allocations: 60.69 kB / 0.5194 GB, free: 33.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.2999, allocations: 0 / 0.5194 GB, free: 33.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.633e-05/0.2999, allocations: 54.28 kB / 0.5195 GB, free: 33.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001179/0.3, allocations: 7.062 kB / 0.5195 GB, free: 33.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001272/0.3001, allocations: 102.2 kB / 0.5196 GB, free: 33.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.363e-05/0.3002, allocations: 0.6752 MB / 0.5202 GB, free: 32.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.803e-06/0.3003, allocations: 7.438 kB / 0.5202 GB, free: 32.75 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3003, allocations: 0 / 0.5202 GB, free: 32.75 MB / 378.7 MB Notification: Performance of Templates: time 0.001762/0.302, allocations: 0.8127 MB / 0.521 GB, free: 32.68 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches