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.001578/0.001583, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.00229/0.00229, allocations: 190.5 kB / 17.43 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.605/1.605, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 51.89 kB / 300.1 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1365, allocations: 49.43 MB / 349.5 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006962/0.1436, allocations: 3.992 MB / 353.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003973/0.1476, allocations: 1.418 MB / 354.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009112/0.1485, allocations: 8 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.1497, allocations: 228.2 kB / 355.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008866/0.1506, allocations: 230.7 kB / 355.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.1516, allocations: 252.7 kB / 355.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008497/0.1525, allocations: 0.6851 MB / 356.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000347/0.1528, allocations: 157.7 kB / 356.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004085/0.1533, allocations: 251 kB / 356.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003816/0.1536, allocations: 282.8 kB / 357 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001641/0.1538, allocations: 32 kB / 357 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002957/0.1541, allocations: 71.92 kB / 357.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.1543, allocations: 123.5 kB / 357.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005167/0.1548, allocations: 286.4 kB / 357.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009268/0.1558, allocations: 0.6578 MB / 358.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.1558, allocations: 8 kB / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1558, allocations: 0 / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.518e-05/0.1558, allocations: 0 / 358.1 MB, free: 12.07 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.002229/0.1581, allocations: 0.9375 MB / 359.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.097e-05/0.1582, allocations: 8.031 kB / 359.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001197/0.1583, allocations: 78.7 kB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.1585, allocations: 68.19 kB / 359.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007129/0.1592, allocations: 406.8 kB / 359.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.1593, allocations: 29.38 kB / 359.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.705e-05/0.1594, allocations: 43.94 kB / 359.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008664/0.1603, allocations: 445.5 kB / 360.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.1603, allocations: 3.984 kB / 360.1 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.446e-05/0.1604, allocations: 16 kB / 360.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.1604, allocations: 11.94 kB / 360.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006302/0.161, allocations: 319.8 kB / 360.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00252/0.1635, allocations: 1.706 MB / 362.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000903/0.1645, allocations: 367 kB / 362.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004284/0.1649, allocations: 184.8 kB / 362.7 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.383e-05/0.165, allocations: 4 kB / 362.7 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004741/0.1654, allocations: 258.4 kB / 363 MB, free: 6.961 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.454e-06/0.1655, allocations: 4 kB / 363 MB, free: 6.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002425/0.1679, allocations: 1.01 MB / 364 MB, free: 5.855 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001584/0.1681, allocations: 199.8 kB / 364.2 MB, free: 5.617 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007579/0.1688, allocations: 497.8 kB / 364.7 MB, free: 5.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.367e-05/0.1689, allocations: 37.69 kB / 364.7 MB, free: 5.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.1691, allocations: 260.4 kB / 365 MB, free: 4.816 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/0.1693, allocations: 122.3 kB / 365.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.1695, allocations: 82.03 kB / 365.2 MB, free: 4.609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000278/0.1697, allocations: 358.8 kB / 365.5 MB, free: 4.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002619/0.17, allocations: 120.8 kB / 365.6 MB, free: 4.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003456/0.1704, allocations: 221.2 kB / 365.8 MB, free: 3.887 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004997/0.1709, allocations: 269.1 kB / 366.1 MB, free: 3.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1709, allocations: 0 / 366.1 MB, free: 3.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000934/0.1718, allocations: 480.8 kB / 366.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.1719, allocations: 4 kB / 366.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1719, allocations: 0 / 366.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005929/0.1725, allocations: 163.4 kB / 366.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.1727, allocations: 47.98 kB / 366.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2152/0.3879, allocations: 5.937 MB / 372.7 MB, free: 21.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005573/0.3886, allocations: 51.47 kB / 372.8 MB, free: 21.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-05/0.3886, allocations: 16.16 kB / 372.8 MB, free: 21.72 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.0004343/0.389, allocations: 194.1 kB / 373 MB, free: 21.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.3892, allocations: 51.12 kB / 373 MB, free: 21.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000145/0.3893, allocations: 61.36 kB / 373.1 MB, free: 21.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.3893, allocations: 8.719 kB / 373.1 MB, free: 21.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3894, allocations: 1.188 kB / 373.1 MB, free: 21.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.3894, allocations: 2.344 kB / 373.1 MB, free: 21.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000775/0.3902, allocations: 0.4894 MB / 373.6 MB, free: 21.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3902, allocations: 0.5 kB / 373.6 MB, free: 21.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.3903, allocations: 25.03 kB / 373.6 MB, free: 21.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00054/0.3909, allocations: 158.4 kB / 373.8 MB, free: 21.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/0.3909, allocations: 10.42 kB / 373.8 MB, free: 21.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004492/0.3954, allocations: 5.792 MB / 379.6 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3955, allocations: 0.5312 kB / 379.6 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.3967, allocations: 0.5139 MB / 380.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001922/0.3969, allocations: 159.4 kB / 380.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.787e-05/0.3969, allocations: 7.031 kB / 380.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002796/0.3972, allocations: 34.56 kB / 380.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.3974, allocations: 53.98 kB / 380.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.117e-05/0.3975, allocations: 12.73 kB / 380.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004788/0.3979, allocations: 363 kB / 380.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3979, allocations: 1.375 kB / 380.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009878/0.3989, allocations: 166.7 kB / 380.9 MB, free: 15.46 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.002459/0.4014, allocations: 1.378 MB / 382.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001757/0.4032, allocations: 0.7937 MB / 383 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/0.4032, allocations: 1.375 kB / 383 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009898/0.4042, allocations: 0.6528 MB / 383.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009248/0.4052, allocations: 121.6 kB / 383.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008761/0.4139, allocations: 4.505 MB / 388.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007756/0.4148, allocations: 0.8608 MB / 389.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004944/0.4153, allocations: 56.84 kB / 389.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003046/0.4156, allocations: 168 kB / 389.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of SimCode: time 3.617e-06/0.4156, allocations: 0 / 389.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03905/0.4547, allocations: 13.27 MB / 402.7 MB, free: 3.438 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002021/0.4549, allocations: 283.4 kB / 402.9 MB, free: 3.062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.439/2.894, allocations: 3.938 kB / 402.9 MB, free: 3.059 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