Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009635/0.0009634, allocations: 185.1 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 223.2 MB / 241 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008602/0.0008603, allocations: 97.67 kB / 292.2 MB, free: 10.71 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3383/0.3383, allocations: 44.22 MB / 387.5 MB, free: 38.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004384/0.0004385, allocations: 8 kB / 459.9 MB, free: 1.566 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3834, allocations: 61.9 MB / 0.5095 GB, free: 37.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1133/0.4967, allocations: 85.84 MB / 0.5934 GB, free: 9.309 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002031/0.497, allocations: 59.98 kB / 0.5934 GB, free: 9.25 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003977/0.5009, allocations: 1.671 MB / 0.5951 GB, free: 7.578 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.501, allocations: 0 / 0.5951 GB, free: 7.578 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.501, allocations: 0 / 0.5951 GB, free: 7.578 MB / 410.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.0002804/0.5013, allocations: 366.4 kB / 0.5954 GB, free: 7.168 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.5013, allocations: 8.031 kB / 0.5954 GB, free: 7.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.117e-05/0.5014, allocations: 0 / 0.5954 GB, free: 7.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.673e-05/0.5015, allocations: 167.1 kB / 0.5956 GB, free: 6.957 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.5015, allocations: 4 kB / 0.5956 GB, free: 6.953 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.5015, allocations: 0 / 0.5956 GB, free: 6.953 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.445e-05/0.5016, allocations: 29.66 kB / 0.5956 GB, free: 6.918 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.5016, allocations: 0 / 0.5956 GB, free: 6.918 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.5016, allocations: 4 kB / 0.5956 GB, free: 6.914 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.5016, allocations: 0 / 0.5956 GB, free: 6.914 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.549e-05/0.5016, allocations: 0 / 0.5956 GB, free: 6.914 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001134/0.5018, allocations: 145.7 kB / 0.5958 GB, free: 6.723 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.106e-05/0.5018, allocations: 34.47 kB / 0.5958 GB, free: 6.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.675e-06/0.5018, allocations: 0 / 0.5958 GB, free: 6.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.5019, allocations: 60.2 kB / 0.5959 GB, free: 6.605 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.5019, allocations: 0 / 0.5959 GB, free: 6.605 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001637/0.502, allocations: 67.42 kB / 0.5959 GB, free: 6.527 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.5021, allocations: 85.03 kB / 0.596 GB, free: 6.426 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.541e-05/0.5021, allocations: 89.03 kB / 0.5961 GB, free: 6.332 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.081e-05/0.5022, allocations: 33.7 kB / 0.5961 GB, free: 6.293 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.877e-05/0.5022, allocations: 80.14 kB / 0.5962 GB, free: 6.211 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/0.5022, allocations: 0 / 0.5962 GB, free: 6.211 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-06/0.5022, allocations: 0 / 0.5962 GB, free: 6.211 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.746e-05/0.5023, allocations: 310.8 kB / 0.5965 GB, free: 5.898 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.284e-06/0.5023, allocations: 0 / 0.5965 GB, free: 5.898 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.901e-06/0.5023, allocations: 4 kB / 0.5965 GB, free: 5.895 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.649e-05/0.5024, allocations: 29.7 kB / 0.5965 GB, free: 5.859 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5024, allocations: 4.062 kB / 0.5965 GB, free: 5.855 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.997e-05/0.5024, allocations: 63.39 kB / 0.5966 GB, free: 5.781 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.527e-05/0.5025, allocations: 29.7 kB / 0.5966 GB, free: 5.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.5025, allocations: 0 / 0.5966 GB, free: 5.746 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.5025, allocations: 0 / 0.5966 GB, free: 5.746 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.284e-06/0.5025, allocations: 3.953 kB / 0.5966 GB, free: 5.742 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.5025, allocations: 4 kB / 0.5966 GB, free: 5.738 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.105e-05/0.5026, allocations: 0 / 0.5966 GB, free: 5.738 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.5026, allocations: 0 / 0.5966 GB, free: 5.738 MB / 410.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.053e-05/0.5026, allocations: 144 kB / 0.5968 GB, free: 5.582 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.182e-06/0.5027, allocations: 0 / 0.5968 GB, free: 5.582 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.689e-05/0.5027, allocations: 14.7 kB / 0.5968 GB, free: 5.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.62e-07/0.5027, allocations: 0 / 0.5968 GB, free: 5.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.5027, allocations: 3.953 kB / 0.5968 GB, free: 5.566 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.5027, allocations: 0 / 0.5968 GB, free: 5.566 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.424e-05/0.5028, allocations: 149.7 kB / 0.5969 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.5028, allocations: 0 / 0.5969 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.5028, allocations: 0 / 0.5969 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.5028, allocations: 0 / 0.5969 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.5028, allocations: 4 kB / 0.5969 GB, free: 5.367 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.5028, allocations: 3.984 kB / 0.5969 GB, free: 5.363 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.5028, allocations: 0 / 0.5969 GB, free: 5.363 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.683e-05/0.5029, allocations: 90.8 kB / 0.597 GB, free: 5.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.769e-05/0.503, allocations: 81.05 kB / 0.5971 GB, free: 5.152 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.503, allocations: 3.984 kB / 0.5971 GB, free: 5.148 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.708e-06/0.503, allocations: 4 kB / 0.5971 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.661e-05/0.503, allocations: 0 / 0.5971 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.503, allocations: 11.91 kB / 0.5971 GB, free: 5.133 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.376e-05/0.503, allocations: 75.28 kB / 0.5972 GB, free: 5.059 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.5031, allocations: 0 / 0.5972 GB, free: 5.059 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002388/0.5033, allocations: 35.94 kB / 0.5972 GB, free: 5.023 MB / 410.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.0005796/0.5039, allocations: 281.8 kB / 0.5975 GB, free: 4.816 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001048/0.504, allocations: 59.39 kB / 0.5975 GB, free: 4.746 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.504, allocations: 0 / 0.5975 GB, free: 4.746 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.482e-05/0.504, allocations: 59.47 kB / 0.5976 GB, free: 4.676 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.273e-05/0.5041, allocations: 4.062 kB / 0.5976 GB, free: 4.672 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000178/0.5043, allocations: 76.88 kB / 0.5977 GB, free: 4.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.5045, allocations: 0.6731 MB / 0.5983 GB, free: 3.871 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.005e-05/0.5046, allocations: 3.938 kB / 0.5983 GB, free: 3.867 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.026e-05/0.5046, allocations: 15.38 kB / 0.5983 GB, free: 3.852 MB / 410.7 MB Notification: Performance of SimCode: time 4.1e-07/0.5046, allocations: 0 / 0.5983 GB, free: 3.852 MB / 410.7 MB Notification: Performance of Templates: time 0.002783/0.5074, allocations: 0.7626 MB / 0.5991 GB, free: 3.09 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches