Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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) 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(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009128/0.0009129, allocations: 180.8 kB / 16.38 MB, free: 5.766 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.353/1.353, allocations: 223.2 MB / 240.3 MB, free: 10.13 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.0007964/0.0007965, allocations: 89.61 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.0002588, allocations: 7.938 kB / 351.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.271, allocations: 50.41 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1118/0.3828, allocations: 84.09 MB / 485.6 MB, free: 12.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003403/0.3832, allocations: 82.7 kB / 485.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03092/0.4142, allocations: 11.37 MB / 497 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.4143, allocations: 0 / 497 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.936e-05/0.4143, allocations: 12 kB / 497.1 MB, free: 0.8477 MB / 362.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.001633/0.4159, allocations: 0.8613 MB / 497.9 MB, free: 15.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.776e-05/0.416, allocations: 8.031 kB / 497.9 MB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.4162, allocations: 75.16 kB / 498 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006712/0.4168, allocations: 405.9 kB / 498.4 MB, free: 15.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.092e-05/0.4169, allocations: 29 kB / 498.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.568e-05/0.417, allocations: 36 kB / 498.5 MB, free: 15.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007269/0.4177, allocations: 441.5 kB / 498.9 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.4177, allocations: 0 / 498.9 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.542e-05/0.4178, allocations: 19.95 kB / 498.9 MB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.4178, allocations: 8 kB / 498.9 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000601/0.4184, allocations: 319.8 kB / 499.2 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002602/0.421, allocations: 1.746 MB / 0.4892 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006895/0.4217, allocations: 367 kB / 0.4896 GB, free: 12.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.489e-05/0.4218, allocations: 15.92 kB / 0.4896 GB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004271/0.4222, allocations: 254.5 kB / 0.4898 GB, free: 12.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 2.084e-06/0.4222, allocations: 0 / 0.4898 GB, free: 12.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.002103/0.4244, allocations: 1.037 MB / 0.4909 GB, free: 10.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.225e-05/0.4245, allocations: 183.9 kB / 0.491 GB, free: 10.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005385/0.425, allocations: 449.1 kB / 0.4915 GB, free: 10.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.736e-05/0.4251, allocations: 37.7 kB / 0.4915 GB, free: 10.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.4252, allocations: 256.4 kB / 0.4917 GB, free: 9.953 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.854e-05/0.4253, allocations: 122.3 kB / 0.4919 GB, free: 9.832 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.775e-05/0.4254, allocations: 4 kB / 0.4919 GB, free: 9.828 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4255, allocations: 358.8 kB / 0.4922 GB, free: 9.469 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.4258, allocations: 124.8 kB / 0.4923 GB, free: 9.348 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003139/0.4261, allocations: 221.2 kB / 0.4925 GB, free: 9.098 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002736/0.4264, allocations: 128.4 kB / 0.4926 GB, free: 8.977 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4264, allocations: 0 / 0.4926 GB, free: 8.977 MB / 378.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007903/0.4272, allocations: 481.2 kB / 0.4931 GB, free: 8.488 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.4272, allocations: 8 kB / 0.4931 GB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4272, allocations: 0 / 0.4931 GB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005036/0.4277, allocations: 167.4 kB / 0.4933 GB, free: 8.305 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/0.428, allocations: 47.91 kB / 0.4933 GB, free: 8.258 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004598/0.4326, allocations: 5.978 MB / 0.4992 GB, free: 1.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004018/0.433, allocations: 63.72 kB / 0.4992 GB, free: 1.676 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.433, allocations: 8 kB / 0.4992 GB, free: 1.668 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.0003121/0.4333, allocations: 199.9 kB / 0.4994 GB, free: 1.465 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.798e-05/0.4334, allocations: 55.34 kB / 0.4995 GB, free: 1.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001042/0.4345, allocations: 0.5047 MB / 0.5 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.4345, allocations: 4 kB / 0.5 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.4345, allocations: 8 kB / 0.5 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.4345, allocations: 3.984 kB / 0.5 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000608/0.4351, allocations: 0.5048 MB / 0.5005 GB, free: 320 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.4351, allocations: 0 / 0.5005 GB, free: 320 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001426/0.4353, allocations: 27.92 kB / 0.5005 GB, free: 292 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004804/0.4358, allocations: 155.3 kB / 0.5006 GB, free: 124 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.244e-05/0.4358, allocations: 8 kB / 0.5007 GB, free: 116 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2267/0.6625, allocations: 5.827 MB / 0.5063 GB, free: 92.22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.6626, allocations: 3.562 kB / 0.5063 GB, free: 92.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.6638, allocations: 0.5081 MB / 0.5068 GB, free: 92.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000231/0.6641, allocations: 170 kB / 0.507 GB, free: 92.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.435e-05/0.6641, allocations: 7.266 kB / 0.507 GB, free: 92.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.6644, allocations: 40.52 kB / 0.5071 GB, free: 92.02 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.6646, allocations: 53.31 kB / 0.5071 GB, free: 92.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.802e-05/0.6646, allocations: 12.64 kB / 0.5071 GB, free: 92.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004651/0.6651, allocations: 355.2 kB / 0.5075 GB, free: 91.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6651, allocations: 0 / 0.5075 GB, free: 91.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008359/0.666, allocations: 186.4 kB / 0.5076 GB, free: 91.93 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.001011/0.667, allocations: 437.6 kB / 0.508 GB, free: 91.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.6686, allocations: 0.8147 MB / 0.5088 GB, free: 91.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.85e-06/0.6687, allocations: 0.5312 kB / 0.5088 GB, free: 91.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007946/0.6695, allocations: 0.6625 MB / 0.5095 GB, free: 90.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006327/0.6701, allocations: 114.9 kB / 0.5096 GB, free: 90.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/0.6727, allocations: 1.139 MB / 0.5107 GB, free: 90.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.6731, allocations: 0.8751 MB / 0.5116 GB, free: 89.67 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000234/0.6733, allocations: 51.38 kB / 0.5116 GB, free: 89.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.509e-05/0.6734, allocations: 34 kB / 0.5117 GB, free: 89.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.382e-06/0.6734, allocations: 0 / 0.5117 GB, free: 89.66 MB / 378.7 MB Notification: Performance of Templates: time 0.01316/0.6866, allocations: 8.612 MB / 0.5201 GB, free: 88.72 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches