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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001476/0.001476, allocations: 190 kB / 17.54 MB, free: 6.066 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.558/1.558, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001277, allocations: 55.61 kB / 300.2 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1153, allocations: 49.44 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006231/0.1216, allocations: 3.98 MB / 353.7 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003216/0.1248, allocations: 1.418 MB / 355.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007072/0.1256, allocations: 4 kB / 355.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.1268, allocations: 235.2 kB / 355.3 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009761/0.1278, allocations: 233.9 kB / 355.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009275/0.1287, allocations: 243.6 kB / 355.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001022/0.1298, allocations: 0.7047 MB / 356.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003793/0.1301, allocations: 189.1 kB / 356.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005977/0.1308, allocations: 279 kB / 356.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005722/0.1313, allocations: 298.8 kB / 357.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001633/0.1315, allocations: 52 kB / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003671/0.1319, allocations: 91.92 kB / 357.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001822/0.1321, allocations: 139.5 kB / 357.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003691/0.1325, allocations: 306.4 kB / 357.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009086/0.1334, allocations: 0.6929 MB / 358.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1334, allocations: 4 kB / 358.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1334, allocations: 0 / 358.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.806e-05/0.1334, allocations: 0 / 358.5 MB, free: 11.79 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.002161/0.1356, allocations: 0.9336 MB / 359.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.1357, allocations: 8.031 kB / 359.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001184/0.1358, allocations: 82.7 kB / 359.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.136, allocations: 64.19 kB / 359.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006857/0.1367, allocations: 406.8 kB / 360 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.1367, allocations: 29.38 kB / 360 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.96e-05/0.1368, allocations: 51.94 kB / 360.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008285/0.1376, allocations: 441.5 kB / 360.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.1376, allocations: 0 / 360.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.648e-05/0.1377, allocations: 16 kB / 360.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.1377, allocations: 15.94 kB / 360.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006308/0.1383, allocations: 315.8 kB / 360.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002708/0.1411, allocations: 1.706 MB / 362.6 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007408/0.1418, allocations: 367 kB / 362.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003506/0.1422, allocations: 188.7 kB / 363.1 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.967e-05/0.1423, allocations: 4 kB / 363.1 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000507/0.1428, allocations: 254.4 kB / 363.3 MB, free: 6.688 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.896e-06/0.1428, allocations: 4 kB / 363.3 MB, free: 6.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002389/0.1452, allocations: 1.014 MB / 364.4 MB, free: 5.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.1453, allocations: 195.8 kB / 364.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007479/0.1461, allocations: 0.494 MB / 365 MB, free: 4.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.005e-05/0.1462, allocations: 33.7 kB / 365.1 MB, free: 4.801 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.1464, allocations: 260.4 kB / 365.3 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.1465, allocations: 122.3 kB / 365.5 MB, free: 4.418 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.1467, allocations: 86.03 kB / 365.5 MB, free: 4.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1469, allocations: 354.8 kB / 365.9 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002561/0.1471, allocations: 120.8 kB / 366 MB, free: 3.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003475/0.1475, allocations: 221.2 kB / 366.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005094/0.148, allocations: 273.1 kB / 366.5 MB, free: 3.328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.148, allocations: 0 / 366.5 MB, free: 3.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009298/0.149, allocations: 480.7 kB / 367 MB, free: 2.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.149, allocations: 4 kB / 367 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.149, allocations: 4 kB / 367 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005378/0.1496, allocations: 163.4 kB / 367.1 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002325/0.1498, allocations: 39.92 kB / 367.2 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2582/0.4081, allocations: 6.639 MB / 373.8 MB, free: 21.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005367/0.4087, allocations: 52.22 kB / 373.9 MB, free: 21.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.4087, allocations: 13.22 kB / 373.9 MB, free: 21.23 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 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003164/0.409, allocations: 192.4 kB / 374.1 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-05/0.4091, allocations: 56.47 kB / 374.1 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001286/0.4093, allocations: 63.39 kB / 374.2 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4093, allocations: 4.219 kB / 374.2 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.4093, allocations: 0.6562 kB / 374.2 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.4093, allocations: 2.938 kB / 374.2 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006442/0.4099, allocations: 497.2 kB / 374.7 MB, free: 20.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.41, allocations: 0.5625 kB / 374.7 MB, free: 20.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/0.4101, allocations: 28.52 kB / 374.7 MB, free: 20.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004636/0.4106, allocations: 158.1 kB / 374.8 MB, free: 20.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.912e-05/0.4106, allocations: 8.188 kB / 374.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004307/0.4149, allocations: 6.361 MB / 381.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.415, allocations: 0 / 381.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.4161, allocations: 0.5078 MB / 381.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.4163, allocations: 153.4 kB / 381.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.057e-05/0.4163, allocations: 13.48 kB / 381.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/0.4166, allocations: 27.81 kB / 381.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.4168, allocations: 56.64 kB / 382 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/0.4169, allocations: 13.56 kB / 382 MB, free: 14.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005027/0.4174, allocations: 359.8 kB / 382.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4174, allocations: 1.406 kB / 382.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000909/0.4183, allocations: 170.2 kB / 382.5 MB, free: 14.38 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002089/0.4204, allocations: 1.384 MB / 383.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.4217, allocations: 0.8163 MB / 384.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4217, allocations: 0 / 384.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006529/0.4224, allocations: 0.6508 MB / 385.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006099/0.423, allocations: 129.4 kB / 385.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006131/0.4291, allocations: 4.513 MB / 390 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004109/0.4296, allocations: 0.8633 MB / 390.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002766/0.4299, allocations: 48.53 kB / 390.9 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002134/0.4301, allocations: 170.7 kB / 391.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4301, allocations: 1.125 kB / 391.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04024/0.4703, allocations: 13.84 MB / 404.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/0.4706, allocations: 288.9 kB / 405.2 MB, free: 1.207 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.474/2.945, allocations: 3.094 kB / 405.2 MB, free: 1.207 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches