Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001645/0.001648, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001137/0.001137, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.281/0.281, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.106e-05/3.115e-05, allocations: 0 / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1139, allocations: 58.86 MB / 484.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4873/0.6012, allocations: 86.38 MB / 0.5571 GB, free: 1.273 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/0.6015, allocations: 60.97 kB / 0.5572 GB, free: 1.246 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02675/0.6283, allocations: 6.077 MB / 0.5631 GB, free: 12.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.6283, allocations: 0 / 0.5631 GB, free: 12.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.6283, allocations: 0 / 0.5631 GB, free: 12.36 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.000522/0.6289, allocations: 403.7 kB / 0.5635 GB, free: 11.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.6289, allocations: 12.02 kB / 0.5635 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.733e-05/0.629, allocations: 4 kB / 0.5635 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.6291, allocations: 167 kB / 0.5637 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.6291, allocations: 0 / 0.5637 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.6292, allocations: 0 / 0.5637 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.521e-05/0.6293, allocations: 41.2 kB / 0.5637 GB, free: 11.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.6293, allocations: 3.938 kB / 0.5637 GB, free: 11.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.6293, allocations: 0 / 0.5637 GB, free: 11.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.6293, allocations: 0 / 0.5637 GB, free: 11.65 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.952e-05/0.6293, allocations: 0 / 0.5637 GB, free: 11.65 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001629/0.6295, allocations: 157.6 kB / 0.5639 GB, free: 11.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.672e-05/0.6296, allocations: 18.36 kB / 0.5639 GB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.004e-05/0.6296, allocations: 12.86 kB / 0.5639 GB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-06/0.6296, allocations: 0 / 0.5639 GB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.453e-05/0.6297, allocations: 60.2 kB / 0.564 GB, free: 11.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.583e-06/0.6297, allocations: 0 / 0.564 GB, free: 11.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001843/0.6299, allocations: 63.39 kB / 0.564 GB, free: 11.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.63, allocations: 81.11 kB / 0.5641 GB, free: 11.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.152e-05/0.63, allocations: 88.62 kB / 0.5642 GB, free: 11.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.6301, allocations: 29.86 kB / 0.5642 GB, free: 11.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.803e-05/0.6301, allocations: 150.6 kB / 0.5644 GB, free: 10.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/0.6302, allocations: 4 kB / 0.5644 GB, free: 10.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.6302, allocations: 0 / 0.5644 GB, free: 10.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.6303, allocations: 314.8 kB / 0.5647 GB, free: 10.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.182e-05/0.6303, allocations: 0 / 0.5647 GB, free: 10.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.318e-06/0.6304, allocations: 0 / 0.5647 GB, free: 10.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.284e-05/0.6304, allocations: 33.69 kB / 0.5647 GB, free: 10.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.6304, allocations: 4.062 kB / 0.5647 GB, free: 10.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001087/0.6305, allocations: 67.09 kB / 0.5648 GB, free: 10.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.811e-05/0.6306, allocations: 29.7 kB / 0.5648 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.6306, allocations: 0 / 0.5648 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.6306, allocations: 4 kB / 0.5648 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.362e-06/0.6306, allocations: 0 / 0.5648 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.6307, allocations: 3.938 kB / 0.5648 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.124e-05/0.6307, allocations: 0 / 0.5648 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.6307, allocations: 0 / 0.5648 GB, free: 10.41 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 () * 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 9.755e-05/0.6308, allocations: 142.7 kB / 0.5649 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.408e-05/0.6308, allocations: 3.906 kB / 0.5649 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.773e-05/0.6309, allocations: 3.125 kB / 0.5649 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.6309, allocations: 0 / 0.5649 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.6309, allocations: 0 / 0.5649 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.6309, allocations: 0 / 0.5649 GB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/0.631, allocations: 161.3 kB / 0.5651 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.631, allocations: 0 / 0.5651 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-06/0.6311, allocations: 0 / 0.5651 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.6311, allocations: 0 / 0.5651 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.6311, allocations: 4 kB / 0.5651 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.6311, allocations: 4 kB / 0.5651 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.6311, allocations: 4 kB / 0.5651 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001695/0.6313, allocations: 94.7 kB / 0.5652 GB, free: 9.914 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.444e-05/0.6313, allocations: 81.06 kB / 0.5653 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.6314, allocations: 0 / 0.5653 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.307e-05/0.6314, allocations: 0 / 0.5653 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.094e-05/0.6314, allocations: 4 kB / 0.5653 GB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.209e-06/0.6314, allocations: 4.031 kB / 0.5653 GB, free: 9.809 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.757e-05/0.6315, allocations: 75.28 kB / 0.5654 GB, free: 9.734 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6315, allocations: 0 / 0.5654 GB, free: 9.734 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004726/0.632, allocations: 79.03 kB / 0.5654 GB, free: 9.664 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) * 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.0008883/0.6329, allocations: 338.4 kB / 0.5658 GB, free: 9.367 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001207/0.633, allocations: 71.02 kB / 0.5658 GB, free: 9.289 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.633, allocations: 0 / 0.5658 GB, free: 9.289 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.146e-05/0.6331, allocations: 55.41 kB / 0.5659 GB, free: 9.223 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000106/0.6332, allocations: 0 / 0.5659 GB, free: 9.223 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001894/0.6334, allocations: 78.02 kB / 0.566 GB, free: 9.121 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.6337, allocations: 0.6772 MB / 0.5666 GB, free: 8.418 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.403e-05/0.6337, allocations: 11.44 kB / 0.5666 GB, free: 8.406 MB / 378.7 MB Notification: Performance of SimCode: time 9.71e-07/0.6337, allocations: 0 / 0.5666 GB, free: 8.406 MB / 378.7 MB Notification: Performance of Templates: time 0.005319/0.6391, allocations: 1.778 MB / 0.5684 GB, free: 6.629 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches