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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009754/0.0009756, allocations: 96.81 kB / 16.3 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009576/0.0009576, allocations: 183.5 kB / 17.19 MB, free: 5.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.2 MB / 241.1 MB, free: 280 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003841/0.0003841, allocations: 4 kB / 300.7 MB, free: 6.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1426, allocations: 50.41 MB / 351.1 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004599/0.1473, allocations: 3.203 MB / 354.3 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002783/0.1501, allocations: 1.361 MB / 355.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004747/0.1506, allocations: 11.94 kB / 355.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000922/0.1515, allocations: 211.2 kB / 355.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000834/0.1524, allocations: 279.2 kB / 356.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007957/0.1532, allocations: 226.6 kB / 356.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008679/0.1541, allocations: 479.5 kB / 356.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.1544, allocations: 140.4 kB / 357 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004628/0.1549, allocations: 227.2 kB / 357.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004372/0.1553, allocations: 258.9 kB / 357.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.321e-05/0.1554, allocations: 24 kB / 357.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002286/0.1556, allocations: 59.91 kB / 357.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001375/0.1558, allocations: 107.6 kB / 357.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.1559, allocations: 125.4 kB / 357.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005251/0.1565, allocations: 0.5106 MB / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1565, allocations: 3.938 kB / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1565, allocations: 0 / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.14e-05/0.1565, allocations: 0 / 358.3 MB, free: 12.8 MB / 302.1 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.001792/0.1583, allocations: 0.8595 MB / 359.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1584, allocations: 8.031 kB / 359.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.1585, allocations: 75.11 kB / 359.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006595/0.1592, allocations: 382 kB / 359.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.239e-05/0.1593, allocations: 32.98 kB / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.462e-05/0.1593, allocations: 40 kB / 359.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007902/0.1601, allocations: 437.5 kB / 360.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.1602, allocations: 0 / 360.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.552e-05/0.1602, allocations: 16 kB / 360.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.1602, allocations: 12 kB / 360.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006445/0.1609, allocations: 315.7 kB / 360.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002805/0.1637, allocations: 1.726 MB / 362.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007303/0.1644, allocations: 355.1 kB / 362.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.254e-05/0.1645, allocations: 8 kB / 362.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005041/0.165, allocations: 258.4 kB / 362.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.876e-06/0.165, allocations: 0 / 362.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002375/0.1674, allocations: 1.029 MB / 363.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.1675, allocations: 191.9 kB / 364 MB, free: 6.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006647/0.1682, allocations: 497.9 kB / 364.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.187e-05/0.1683, allocations: 33.7 kB / 364.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002328/0.1685, allocations: 264.3 kB / 364.8 MB, free: 5.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.1686, allocations: 118.3 kB / 364.9 MB, free: 5.789 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.985e-05/0.1687, allocations: 8 kB / 364.9 MB, free: 5.781 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1688, allocations: 362.8 kB / 365.3 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002614/0.1691, allocations: 120.8 kB / 365.4 MB, free: 5.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003239/0.1694, allocations: 209.3 kB / 365.6 MB, free: 5.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.1697, allocations: 129.5 kB / 365.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1697, allocations: 0 / 365.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008563/0.1706, allocations: 473.1 kB / 366.2 MB, free: 4.465 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.1706, allocations: 8 kB / 366.2 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1706, allocations: 0 / 366.2 MB, free: 4.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006143/0.1713, allocations: 167.3 kB / 366.3 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.1715, allocations: 51.95 kB / 366.4 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2217/0.3932, allocations: 5.97 MB / 372.4 MB, free: 21.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005285/0.3938, allocations: 59.12 kB / 372.4 MB, free: 21.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/0.3938, allocations: 14.36 kB / 372.4 MB, free: 21.81 MB / 302.1 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,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,$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.0002921/0.3941, allocations: 192.2 kB / 372.6 MB, free: 21.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.157e-05/0.3942, allocations: 51.53 kB / 372.7 MB, free: 21.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.3943, allocations: 64.55 kB / 372.7 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.3943, allocations: 8.016 kB / 372.7 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3943, allocations: 3.156 kB / 372.8 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.3944, allocations: 2.25 kB / 372.8 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000596/0.395, allocations: 496.3 kB / 373.2 MB, free: 21.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.395, allocations: 1.031 kB / 373.2 MB, free: 21.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.3951, allocations: 29.77 kB / 373.3 MB, free: 21.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004683/0.3956, allocations: 158 kB / 373.4 MB, free: 21.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.3957, allocations: 12.12 kB / 373.4 MB, free: 21.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003753/0.3994, allocations: 5.838 MB / 379.3 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3994, allocations: 0 / 379.3 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.4005, allocations: 0.5035 MB / 379.8 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.4006, allocations: 163.2 kB / 379.9 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.757e-05/0.4007, allocations: 8.75 kB / 379.9 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/0.401, allocations: 43.05 kB / 380 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.4012, allocations: 50.14 kB / 380 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.4012, allocations: 12.34 kB / 380 MB, free: 16.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004029/0.4016, allocations: 357.4 kB / 380.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4016, allocations: 0 / 380.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007827/0.4024, allocations: 173.9 kB / 380.6 MB, free: 15.93 MB / 302.1 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,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * 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.0009211/0.4033, allocations: 434.2 kB / 381 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.4045, allocations: 0.8029 MB / 381.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4045, allocations: 1.219 kB / 381.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006631/0.4051, allocations: 0.6603 MB / 382.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005781/0.4057, allocations: 108.1 kB / 382.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.4081, allocations: 1.114 MB / 383.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003911/0.4085, allocations: 0.8753 MB / 384.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002077/0.4087, allocations: 48.89 kB / 384.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.105e-05/0.4088, allocations: 31.38 kB / 384.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4088, allocations: 0 / 384.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of Templates: time 0.01831/0.4271, allocations: 8.402 MB / 393 MB, free: 10.68 MB / 302.1 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