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.0009789/0.0009789, allocations: 201.7 kB / 15.8 MB, free: 6.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007679/0.0007679, allocations: 103.5 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1915/0.1915, allocations: 44.84 MB / 392 MB, free: 9.328 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002388/0.0002389, allocations: 4 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1083, allocations: 62.96 MB / 0.5153 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0005001/0.1089, allocations: 216.5 kB / 0.5155 GB, free: 2.566 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.1104, allocations: 1.188 MB / 0.5167 GB, free: 1.371 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.78e-05/0.1104, allocations: 3.938 kB / 0.5167 GB, free: 1.367 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.286e-06/0.1105, allocations: 4 kB / 0.5167 GB, free: 1.363 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.1106, allocations: 4 kB / 0.5167 GB, free: 1.359 MB / 346.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.0005121/0.1111, allocations: 183.6 kB / 0.5169 GB, free: 1.18 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.817e-05/0.1111, allocations: 3.984 kB / 0.5169 GB, free: 1.176 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.75e-05/0.1112, allocations: 3.984 kB / 0.5169 GB, free: 1.172 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.739e-05/0.1112, allocations: 7.938 kB / 0.5169 GB, free: 1.164 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.183e-05/0.1113, allocations: 4 kB / 0.5169 GB, free: 1.16 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.324e-06/0.1113, allocations: 0 / 0.5169 GB, free: 1.16 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006823/0.112, allocations: 499.4 kB / 0.5174 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.019e-06/0.112, allocations: 0 / 0.5174 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.097e-05/0.112, allocations: 29.7 kB / 0.5174 GB, free: 0.6367 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001715/0.1122, allocations: 123.7 kB / 0.5175 GB, free: 0.5156 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1122, allocations: 7.922 kB / 0.5175 GB, free: 0.5078 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1122, allocations: 4 kB / 0.5175 GB, free: 0.5039 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.005e-06/0.1122, allocations: 0 / 0.5175 GB, free: 0.5039 MB / 346.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.0003124/0.1125, allocations: 373.1 kB / 0.5179 GB, free: 88 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.1126, allocations: 12.03 kB / 0.5179 GB, free: 76 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.467e-05/0.1126, allocations: 0 / 0.5179 GB, free: 76 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1786/0.2912, allocations: 163.3 kB / 0.518 GB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.2912, allocations: 3.094 kB / 0.518 GB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.262e-05/0.2912, allocations: 3.953 kB / 0.518 GB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.1e-05/0.2913, allocations: 33.22 kB / 0.5181 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.2913, allocations: 0.6094 kB / 0.5181 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-06/0.2914, allocations: 1.156 kB / 0.5181 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.2914, allocations: 0 / 0.5181 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.64e-05/0.2914, allocations: 1.969 kB / 0.5181 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.41e-05/0.2915, allocations: 149.1 kB / 0.5182 GB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.443e-05/0.2915, allocations: 22.59 kB / 0.5182 GB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.195e-05/0.2915, allocations: 6.641 kB / 0.5183 GB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.2916, allocations: 5.391 kB / 0.5183 GB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.2916, allocations: 59.7 kB / 0.5183 GB, free: 11.33 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.303e-06/0.2916, allocations: 0 / 0.5183 GB, free: 11.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001496/0.2918, allocations: 73.73 kB / 0.5184 GB, free: 11.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/0.2918, allocations: 79.02 kB / 0.5185 GB, free: 11.17 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.002e-05/0.2918, allocations: 95.17 kB / 0.5186 GB, free: 11.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.022e-06/0.2919, allocations: 26.42 kB / 0.5186 GB, free: 11.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.379e-05/0.2919, allocations: 82.45 kB / 0.5187 GB, free: 10.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.293e-05/0.2919, allocations: 1.719 kB / 0.5187 GB, free: 10.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.723e-06/0.2919, allocations: 3.094 kB / 0.5187 GB, free: 10.96 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.599e-05/0.2919, allocations: 316.6 kB / 0.519 GB, free: 10.65 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.075e-06/0.2919, allocations: 4.672 kB / 0.519 GB, free: 10.65 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.374e-06/0.292, allocations: 2.281 kB / 0.519 GB, free: 10.65 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.702e-05/0.292, allocations: 28.45 kB / 0.519 GB, free: 10.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.292, allocations: 0 / 0.519 GB, free: 10.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.808e-05/0.2921, allocations: 62.52 kB / 0.5191 GB, free: 10.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.2921, allocations: 39.25 kB / 0.5191 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.2921, allocations: 4.812 kB / 0.5191 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.939e-06/0.2921, allocations: 0 / 0.5191 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.314e-06/0.2921, allocations: 4.406 kB / 0.5191 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.2921, allocations: 0 / 0.5191 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.596e-05/0.2921, allocations: 0.5938 kB / 0.5191 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.2922, allocations: 2.797 kB / 0.5191 GB, free: 10.52 MB / 346.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.524e-05/0.2922, allocations: 136.1 kB / 0.5192 GB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.266e-06/0.2922, allocations: 1.203 kB / 0.5192 GB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.173e-05/0.2922, allocations: 12.91 kB / 0.5192 GB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2922, allocations: 5.641 kB / 0.5193 GB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.2923, allocations: 3.938 kB / 0.5193 GB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2923, allocations: 1.188 kB / 0.5193 GB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.828e-05/0.2923, allocations: 148.2 kB / 0.5194 GB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2923, allocations: 0 / 0.5194 GB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.21e-07/0.2923, allocations: 5.047 kB / 0.5194 GB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2923, allocations: 0.5938 kB / 0.5194 GB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.2923, allocations: 1.891 kB / 0.5194 GB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2924, allocations: 4.484 kB / 0.5194 GB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2924, allocations: 5.5 kB / 0.5194 GB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.026e-05/0.2924, allocations: 96.64 kB / 0.5195 GB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.267e-05/0.2925, allocations: 78.78 kB / 0.5196 GB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.2925, allocations: 2.125 kB / 0.5196 GB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.031e-05/0.2925, allocations: 1.031 kB / 0.5196 GB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.435e-05/0.2925, allocations: 6.156 kB / 0.5196 GB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-06/0.2925, allocations: 4.594 kB / 0.5196 GB, free: 9.957 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.602e-05/0.2925, allocations: 82.8 kB / 0.5197 GB, free: 9.879 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2925, allocations: 0 / 0.5197 GB, free: 9.879 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003709/0.2929, allocations: 61.59 kB / 0.5197 GB, free: 9.879 MB / 346.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.0005681/0.2935, allocations: 325 kB / 0.52 GB, free: 9.742 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.111e-05/0.2936, allocations: 58.97 kB / 0.5201 GB, free: 9.68 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2936, allocations: 0.9688 kB / 0.5201 GB, free: 9.68 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.883e-05/0.2936, allocations: 60.23 kB / 0.5202 GB, free: 9.613 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001157/0.2937, allocations: 8.891 kB / 0.5202 GB, free: 9.609 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001456/0.2939, allocations: 107.2 kB / 0.5203 GB, free: 9.484 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.638e-05/0.294, allocations: 0.6731 MB / 0.5209 GB, free: 8.789 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.755e-06/0.294, allocations: 8.719 kB / 0.5209 GB, free: 8.781 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.294, allocations: 0 / 0.5209 GB, free: 8.781 MB / 346.7 MB Notification: Performance of Templates: time 0.003474/0.2975, allocations: 1.672 MB / 0.5226 GB, free: 8.59 MB / 346.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