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.0009251/0.0009251, allocations: 192.9 kB / 16.79 MB, free: 4.902 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 226.5 MB / 244.1 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008512/0.0008515, allocations: 92.72 kB / 296.1 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3328/0.3328, allocations: 44.82 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002485/0.0002485, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3047, allocations: 62.95 MB / 0.5165 GB, free: 37.12 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1126/0.4174, allocations: 88.56 MB / 0.6029 GB, free: 0.832 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002161/0.4177, allocations: 67.95 kB / 0.603 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01732/0.435, allocations: 6.504 MB / 0.6094 GB, free: 10.26 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4351, allocations: 0 / 0.6094 GB, free: 10.26 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.034e-06/0.4351, allocations: 0 / 0.6094 GB, free: 10.26 MB / 426.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.0005339/0.4356, allocations: 417.2 kB / 0.6098 GB, free: 9.793 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.4357, allocations: 8.031 kB / 0.6098 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.919e-05/0.4357, allocations: 0.9375 kB / 0.6098 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.4358, allocations: 164.4 kB / 0.6099 GB, free: 9.586 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.4359, allocations: 384 / 0.6099 GB, free: 9.586 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.4359, allocations: 4.312 kB / 0.6099 GB, free: 9.582 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.033e-05/0.436, allocations: 38.2 kB / 0.61 GB, free: 9.539 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.436, allocations: 192 / 0.61 GB, free: 9.539 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.436, allocations: 3.938 kB / 0.61 GB, free: 9.535 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.436, allocations: 3.984 kB / 0.61 GB, free: 9.531 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.623e-05/0.4361, allocations: 3.938 kB / 0.61 GB, free: 9.527 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.4362, allocations: 149.7 kB / 0.6101 GB, free: 9.332 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.773e-05/0.4362, allocations: 14.58 kB / 0.6101 GB, free: 9.309 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.772e-05/0.4363, allocations: 12.95 kB / 0.6101 GB, free: 9.293 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.815e-06/0.4363, allocations: 0 / 0.6101 GB, free: 9.293 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.4363, allocations: 64.19 kB / 0.6102 GB, free: 9.215 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.193e-06/0.4363, allocations: 0 / 0.6102 GB, free: 9.215 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001663/0.4365, allocations: 67.34 kB / 0.6103 GB, free: 9.137 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.4366, allocations: 81.11 kB / 0.6103 GB, free: 9.039 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.105e-05/0.4366, allocations: 94.06 kB / 0.6104 GB, free: 8.938 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.4367, allocations: 29.73 kB / 0.6105 GB, free: 8.902 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.665e-05/0.4367, allocations: 84.14 kB / 0.6105 GB, free: 8.816 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.4367, allocations: 3.906 kB / 0.6105 GB, free: 8.812 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-06/0.4367, allocations: 0 / 0.6105 GB, free: 8.812 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.305e-05/0.4368, allocations: 314.8 kB / 0.6108 GB, free: 8.496 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.147e-06/0.4368, allocations: 0 / 0.6108 GB, free: 8.496 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.734e-06/0.4368, allocations: 4 kB / 0.6109 GB, free: 8.492 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.065e-05/0.4369, allocations: 60.2 kB / 0.6109 GB, free: 8.418 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4369, allocations: 8.062 kB / 0.6109 GB, free: 8.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.276e-05/0.437, allocations: 63.39 kB / 0.611 GB, free: 8.336 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.101e-05/0.437, allocations: 32.67 kB / 0.611 GB, free: 8.301 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.437, allocations: 7.922 kB / 0.611 GB, free: 8.293 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.437, allocations: 0 / 0.611 GB, free: 8.293 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.437, allocations: 0 / 0.611 GB, free: 8.293 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.437, allocations: 0 / 0.611 GB, free: 8.293 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.526e-05/0.4371, allocations: 4 kB / 0.611 GB, free: 8.289 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/0.4371, allocations: 4 kB / 0.611 GB, free: 8.285 MB / 426.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 7.441e-05/0.4372, allocations: 139.6 kB / 0.6112 GB, free: 8.133 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.676e-06/0.4372, allocations: 4 kB / 0.6112 GB, free: 8.129 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.394e-05/0.4372, allocations: 10.66 kB / 0.6112 GB, free: 8.121 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.4372, allocations: 0 / 0.6112 GB, free: 8.121 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4372, allocations: 0 / 0.6112 GB, free: 8.121 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.4372, allocations: 0 / 0.6112 GB, free: 8.121 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.215e-05/0.4373, allocations: 153.7 kB / 0.6113 GB, free: 7.922 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.4373, allocations: 3.938 kB / 0.6113 GB, free: 7.918 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.475e-06/0.4373, allocations: 0 / 0.6113 GB, free: 7.918 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.4374, allocations: 3.938 kB / 0.6113 GB, free: 7.914 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.4374, allocations: 11.88 kB / 0.6113 GB, free: 7.902 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.4374, allocations: 0 / 0.6113 GB, free: 7.902 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4374, allocations: 4 kB / 0.6113 GB, free: 7.898 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.621e-05/0.4375, allocations: 90.83 kB / 0.6114 GB, free: 7.785 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.226e-05/0.4375, allocations: 81.11 kB / 0.6115 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.4376, allocations: 7.938 kB / 0.6115 GB, free: 7.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.238e-06/0.4376, allocations: 0 / 0.6115 GB, free: 7.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.766e-05/0.4376, allocations: 4.031 kB / 0.6115 GB, free: 7.676 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-06/0.4376, allocations: 4 kB / 0.6115 GB, free: 7.672 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.928e-05/0.4376, allocations: 75.28 kB / 0.6116 GB, free: 7.598 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4376, allocations: 0 / 0.6116 GB, free: 7.598 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000464/0.4381, allocations: 107.9 kB / 0.6117 GB, free: 7.492 MB / 426.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.0008372/0.439, allocations: 387.3 kB / 0.6121 GB, free: 7.164 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001043/0.4391, allocations: 63.39 kB / 0.6121 GB, free: 7.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.4391, allocations: 0 / 0.6121 GB, free: 7.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.179e-05/0.4391, allocations: 55.41 kB / 0.6122 GB, free: 7.023 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001343/0.4393, allocations: 6.75 kB / 0.6122 GB, free: 7.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002046/0.4395, allocations: 108.5 kB / 0.6123 GB, free: 6.879 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.4398, allocations: 0.6731 MB / 0.6129 GB, free: 6.18 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.208e-05/0.4398, allocations: 7.438 kB / 0.613 GB, free: 6.172 MB / 426.7 MB Notification: Performance of SimCode: time 3.6e-07/0.4398, allocations: 0 / 0.613 GB, free: 6.172 MB / 426.7 MB Notification: Performance of Templates: time 0.004237/0.444, allocations: 2.04 MB / 0.6149 GB, free: 4.129 MB / 426.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/jenkins1/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