Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.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.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",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.00125/0.00125, allocations: 107.2 kB / 16.92 MB, free: 5.77 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.001209/0.001209, allocations: 191.5 kB / 17.85 MB, free: 5.168 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.54/1.54, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 50.58 kB / 300.7 MB, free: 5.703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0939/0.09494, allocations: 49.44 MB / 350.2 MB, free: 4.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003859/0.09884, allocations: 2.723 MB / 352.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.1, allocations: 0.7128 MB / 353.6 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.1001, allocations: 0 / 353.6 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.1003, allocations: 43.58 kB / 353.6 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.1005, allocations: 83.27 kB / 353.7 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.1008, allocations: 103.7 kB / 353.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003487/0.1012, allocations: 382.6 kB / 354.2 MB, free: 188 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.1013, allocations: 80.55 kB / 354.3 MB, free: 104 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002092/0.1015, allocations: 151.5 kB / 354.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.1018, allocations: 175.2 kB / 354.6 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.718e-05/0.1018, allocations: 32 kB / 354.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.78e-05/0.1019, allocations: 32 kB / 354.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.819e-05/0.102, allocations: 67.75 kB / 354.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.1021, allocations: 159.2 kB / 354.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003274/0.1025, allocations: 359.1 kB / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1025, allocations: 0 / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1025, allocations: 0 / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1025, allocations: 0 / 355.2 MB, free: 15.14 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001496/0.104, allocations: 0.6726 MB / 355.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.104, allocations: 8.031 kB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.987e-05/0.1041, allocations: 58.72 kB / 356 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.766e-05/0.1042, allocations: 32.56 kB / 356 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003079/0.1045, allocations: 268.7 kB / 356.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.1045, allocations: 20.81 kB / 356.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.082e-05/0.1046, allocations: 28.36 kB / 356.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007601/0.1053, allocations: 309.9 kB / 356.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1054, allocations: 0 / 356.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.969e-05/0.1054, allocations: 4 kB / 356.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.1054, allocations: 8 kB / 356.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009696/0.1064, allocations: 297.5 kB / 356.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.1081, allocations: 0.9686 MB / 357.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002962/0.1111, allocations: 0.4904 MB / 358.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000666/0.1117, allocations: 208.7 kB / 358.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.1118, allocations: 7.984 kB / 358.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007195/0.1125, allocations: 244.9 kB / 358.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.813e-06/0.1125, allocations: 0 / 358.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001585/0.1141, allocations: 464 kB / 359.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.1142, allocations: 110.8 kB / 359.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.1144, allocations: 229 kB / 359.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.1145, allocations: 29.7 kB / 359.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.1146, allocations: 160.2 kB / 359.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.451e-05/0.1146, allocations: 74.94 kB / 359.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.1148, allocations: 45.94 kB / 359.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1149, allocations: 334.8 kB / 360.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005023/0.1154, allocations: 140.4 kB / 360.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005161/0.1159, allocations: 173.2 kB / 360.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009713/0.1169, allocations: 312.1 kB / 360.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.1169, allocations: 0 / 360.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001154/0.1181, allocations: 410.7 kB / 361.3 MB, free: 8.797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.932e-05/0.1181, allocations: 41.69 kB / 361.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1181, allocations: 0 / 361.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.1182, allocations: 0 / 361.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001767/0.1199, allocations: 231.7 kB / 361.5 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004724/0.1247, allocations: 3.408 MB / 364.9 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004363/0.1251, allocations: 55.73 kB / 365 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.1252, allocations: 12.09 kB / 365 MB, free: 4.777 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001734/0.1254, allocations: 141.8 kB / 365.1 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.745e-05/0.1254, allocations: 23.75 kB / 365.2 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.826e-05/0.1255, allocations: 30.17 kB / 365.2 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1255, allocations: 4 kB / 365.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.1255, allocations: 0 / 365.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.1255, allocations: 0 / 365.2 MB, free: 4.566 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001765/0.1273, allocations: 0.9038 MB / 366.1 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1273, allocations: 0 / 366.1 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001703/0.129, allocations: 235.7 kB / 366.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.129, allocations: 0 / 366.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.1291, allocations: 11.98 kB / 366.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.162/0.291, allocations: 3.399 MB / 369.7 MB, free: 24.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2911, allocations: 1.312 kB / 369.7 MB, free: 24.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001664/0.2928, allocations: 0.6039 MB / 370.3 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.951e-05/0.2928, allocations: 94.73 kB / 370.4 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.64e-05/0.2929, allocations: 7.547 kB / 370.4 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003683/0.2933, allocations: 44.03 kB / 370.5 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.455e-05/0.2934, allocations: 26.27 kB / 370.5 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.15e-05/0.2934, allocations: 6.719 kB / 370.5 MB, free: 24.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001448/0.2935, allocations: 171.4 kB / 370.7 MB, free: 24.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2935, allocations: 0.5938 kB / 370.7 MB, free: 24.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004955/0.294, allocations: 82 kB / 370.8 MB, free: 24.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001678/0.2957, allocations: 1.14 MB / 371.9 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002492/0.2982, allocations: 0.5436 MB / 372.4 MB, free: 23.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2982, allocations: 5.031 kB / 372.4 MB, free: 23.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001967/0.3002, allocations: 353.6 kB / 372.8 MB, free: 23.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004107/0.3006, allocations: 40.83 kB / 372.8 MB, free: 23.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005336/0.306, allocations: 3.122 MB / 376 MB, free: 21.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001791/0.3062, allocations: 0.7537 MB / 376.7 MB, free: 21.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001462/0.3063, allocations: 22.22 kB / 376.7 MB, free: 21.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.3065, allocations: 80.25 kB / 376.8 MB, free: 21.2 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3065, allocations: 3.469 kB / 376.8 MB, free: 21.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02768/0.3342, allocations: 6.25 MB / 383.1 MB, free: 19.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.35, allocations: 16.19 kB / 383.1 MB, free: 19.88 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.csv --start-time 0 --stop-time 0.0002 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-08 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches