Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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) 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(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000952/0.000952, allocations: 199.3 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.233/1.233, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007117/0.0007117, allocations: 113.2 kB / 297.4 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000205/0.0002051, allocations: 8 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2022, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0928/0.295, allocations: 85.29 MB / 493.9 MB, free: 6.273 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000186/0.2952, allocations: 75.97 kB / 494 MB, free: 6.199 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03031/0.3255, allocations: 12.19 MB / 0.4943 GB, free: 9.973 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.3256, allocations: 0 / 0.4943 GB, free: 9.973 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.098e-05/0.3256, allocations: 20.14 kB / 0.4944 GB, free: 9.953 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001297/0.3269, allocations: 0.8927 MB / 0.4952 GB, free: 9.004 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.3269, allocations: 8.031 kB / 0.4952 GB, free: 8.996 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000199/0.3271, allocations: 84.17 kB / 0.4953 GB, free: 8.914 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005566/0.3277, allocations: 430.7 kB / 0.4957 GB, free: 8.453 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.3278, allocations: 33.38 kB / 0.4958 GB, free: 8.418 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.81e-05/0.3278, allocations: 40.36 kB / 0.4958 GB, free: 8.379 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007216/0.3285, allocations: 442.1 kB / 0.4962 GB, free: 7.926 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.3286, allocations: 4.125 kB / 0.4962 GB, free: 7.922 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.466e-05/0.3286, allocations: 23.94 kB / 0.4963 GB, free: 7.898 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.3286, allocations: 8 kB / 0.4963 GB, free: 7.891 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005784/0.3292, allocations: 315.8 kB / 0.4966 GB, free: 7.582 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002345/0.3316, allocations: 1.753 MB / 0.4983 GB, free: 5.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006576/0.3322, allocations: 359.1 kB / 0.4986 GB, free: 5.367 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003385/0.3326, allocations: 196.8 kB / 0.4988 GB, free: 5.172 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.3327, allocations: 4 kB / 0.4988 GB, free: 5.168 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004252/0.3331, allocations: 262.4 kB / 0.4991 GB, free: 4.883 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 1.693e-06/0.3331, allocations: 0 / 0.4991 GB, free: 4.883 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.002114/0.3352, allocations: 1.04 MB / 0.5001 GB, free: 3.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.3353, allocations: 187.9 kB / 0.5003 GB, free: 3.523 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005434/0.3359, allocations: 0.498 MB / 0.5007 GB, free: 3.012 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.374e-05/0.3359, allocations: 37.7 kB / 0.5008 GB, free: 2.969 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.3361, allocations: 260.4 kB / 0.501 GB, free: 2.711 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.564e-05/0.3362, allocations: 122.2 kB / 0.5011 GB, free: 2.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.305e-05/0.3362, allocations: 12 kB / 0.5012 GB, free: 2.578 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3363, allocations: 362.7 kB / 0.5015 GB, free: 2.215 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.3366, allocations: 116.8 kB / 0.5016 GB, free: 2.102 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003018/0.3369, allocations: 221.2 kB / 0.5018 GB, free: 1.848 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004555/0.3374, allocations: 277.1 kB / 0.5021 GB, free: 1.566 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3374, allocations: 0 / 0.5021 GB, free: 1.566 MB / 378.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007581/0.3382, allocations: 476.8 kB / 0.5025 GB, free: 1.082 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.3382, allocations: 15.98 kB / 0.5026 GB, free: 1.066 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.3382, allocations: 0 / 0.5026 GB, free: 1.066 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004615/0.3387, allocations: 155.3 kB / 0.5027 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.3389, allocations: 47.91 kB / 0.5027 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1623/0.5012, allocations: 5.948 MB / 0.5086 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004809/0.5017, allocations: 68.22 kB / 0.5086 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.171e-05/0.5018, allocations: 9.562 kB / 0.5086 GB, free: 87.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003015/0.5021, allocations: 192.8 kB / 0.5088 GB, free: 87.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.321e-05/0.5022, allocations: 54.25 kB / 0.5089 GB, free: 87.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.5032, allocations: 0.5029 MB / 0.5094 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.5033, allocations: 5.969 kB / 0.5094 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.5033, allocations: 0.5625 kB / 0.5094 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.5033, allocations: 3.078 kB / 0.5094 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005208/0.5038, allocations: 0.5057 MB / 0.5099 GB, free: 87.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.5038, allocations: 1.75 kB / 0.5099 GB, free: 87.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.504, allocations: 31.23 kB / 0.5099 GB, free: 87.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004753/0.5044, allocations: 154.1 kB / 0.51 GB, free: 87.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.783e-05/0.5045, allocations: 10.94 kB / 0.51 GB, free: 87.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003317/0.5078, allocations: 5.803 MB / 0.5157 GB, free: 82.28 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.5078, allocations: 0 / 0.5157 GB, free: 82.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009779/0.5088, allocations: 0.5089 MB / 0.5162 GB, free: 82.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002226/0.509, allocations: 171.2 kB / 0.5164 GB, free: 82.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.86e-05/0.5091, allocations: 10.78 kB / 0.5164 GB, free: 82.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002895/0.5094, allocations: 41.42 kB / 0.5164 GB, free: 82.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.5096, allocations: 54.73 kB / 0.5165 GB, free: 82.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.248e-05/0.5096, allocations: 11.72 kB / 0.5165 GB, free: 82.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004491/0.5101, allocations: 364.1 kB / 0.5168 GB, free: 81.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5101, allocations: 0 / 0.5168 GB, free: 81.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008735/0.511, allocations: 180.3 kB / 0.517 GB, free: 81.94 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: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.000955/0.5119, allocations: 449.2 kB / 0.5174 GB, free: 81.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.5131, allocations: 0.8127 MB / 0.5182 GB, free: 81.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.5131, allocations: 0 / 0.5182 GB, free: 81.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005548/0.5136, allocations: 0.6749 MB / 0.5189 GB, free: 80.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005209/0.5142, allocations: 102.1 kB / 0.519 GB, free: 80.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.5158, allocations: 1.188 MB / 0.5201 GB, free: 80.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.516, allocations: 0.8604 MB / 0.521 GB, free: 79.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.004e-05/0.5161, allocations: 30.75 kB / 0.521 GB, free: 79.54 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.5161, allocations: 0 / 0.521 GB, free: 79.54 MB / 378.7 MB Notification: Performance of Templates: time 0.01224/0.5283, allocations: 14.88 MB / 0.5356 GB, free: 72.2 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches