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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 123 kB / 17.78 MB, free: 5.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00202/0.00202, allocations: 197.2 kB / 20.73 MB, free: 2.309 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 55.86 kB / 365.7 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09629/0.09778, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.00384/0.1016, allocations: 2.746 MB / 420.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.1028, allocations: 0.7128 MB / 421.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.1029, allocations: 4 kB / 421.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.1031, allocations: 39.56 kB / 421.3 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/0.1032, allocations: 91.27 kB / 421.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002912/0.1035, allocations: 107.7 kB / 421.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000407/0.1039, allocations: 378.5 kB / 421.9 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.1041, allocations: 57.38 kB / 421.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002305/0.1043, allocations: 155.5 kB / 422.1 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.1045, allocations: 175.3 kB / 422.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.826e-05/0.1046, allocations: 32 kB / 422.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.869e-05/0.1047, allocations: 36 kB / 422.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.961e-05/0.1047, allocations: 67.75 kB / 422.4 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001581/0.1049, allocations: 155.3 kB / 422.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004293/0.1053, allocations: 366.5 kB / 422.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1053, allocations: 0 / 422.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1053, allocations: 0 / 422.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1053, allocations: 0 / 422.9 MB, free: 7.48 MB / 350.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.001546/0.1069, allocations: 0.6786 MB / 423.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.1069, allocations: 12.03 kB / 423.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.824e-05/0.107, allocations: 54.72 kB / 423.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.855e-05/0.1071, allocations: 32.75 kB / 423.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.1074, allocations: 276.9 kB / 423.9 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.1075, allocations: 12.81 kB / 423.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.679e-05/0.1075, allocations: 28.33 kB / 424 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007687/0.1083, allocations: 309.9 kB / 424.3 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.1083, allocations: 3.938 kB / 424.3 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.1083, allocations: 8 kB / 424.3 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.1083, allocations: 11.92 kB / 424.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009685/0.1093, allocations: 293.5 kB / 424.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.111, allocations: 0.961 MB / 425.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00291/0.1139, allocations: 486.2 kB / 426 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006343/0.1146, allocations: 196.7 kB / 426.2 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.1146, allocations: 3.984 kB / 426.2 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006299/0.1152, allocations: 233.7 kB / 426.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.784e-06/0.1152, allocations: 0 / 426.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00157/0.1168, allocations: 465.6 kB / 426.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.247e-05/0.1169, allocations: 106.8 kB / 427 MB, free: 3.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002404/0.1171, allocations: 233 kB / 427.2 MB, free: 2.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.1171, allocations: 33.73 kB / 427.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.1173, allocations: 164.3 kB / 427.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.895e-05/0.1173, allocations: 71.41 kB / 427.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.1175, allocations: 49.89 kB / 427.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.1176, allocations: 330.8 kB / 427.9 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004929/0.1181, allocations: 148.2 kB / 428 MB, free: 2.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005075/0.1186, allocations: 184.9 kB / 428.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009256/0.1195, allocations: 308.1 kB / 428.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1195, allocations: 0 / 428.5 MB, free: 1.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001145/0.1207, allocations: 406.9 kB / 428.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/0.1207, allocations: 33.7 kB / 428.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1207, allocations: 3.938 kB / 428.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.1207, allocations: 4 kB / 428.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001671/0.1224, allocations: 235.7 kB / 429.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004884/0.1273, allocations: 3.4 MB / 432.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003768/0.1277, allocations: 51.88 kB / 432.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.217e-05/0.1277, allocations: 15.98 kB / 432.6 MB, free: 13.13 MB / 366.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.0001921/0.1279, allocations: 145.8 kB / 432.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.785e-05/0.1279, allocations: 23.86 kB / 432.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.169e-05/0.128, allocations: 30.17 kB / 432.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.128, allocations: 4 kB / 432.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.128, allocations: 0 / 432.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.128, allocations: 0 / 432.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001836/0.1299, allocations: 0.8874 MB / 433.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.1299, allocations: 4 kB / 433.7 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00161/0.1315, allocations: 235.6 kB / 433.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.1315, allocations: 4 kB / 433.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.404e-05/0.1315, allocations: 4 kB / 433.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004848/0.1364, allocations: 3.412 MB / 437.4 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.1364, allocations: 4.031 kB / 437.4 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.1379, allocations: 0.5868 MB / 437.9 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.717e-05/0.138, allocations: 116.9 kB / 438.1 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.011e-05/0.138, allocations: 8 kB / 438.1 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003487/0.1384, allocations: 35.95 kB / 438.1 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.576e-05/0.1385, allocations: 31.91 kB / 438.1 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.42e-05/0.1385, allocations: 11.98 kB / 438.1 MB, free: 7.215 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001658/0.1387, allocations: 168.5 kB / 438.3 MB, free: 7.055 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1387, allocations: 7.938 kB / 438.3 MB, free: 7.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000449/0.1391, allocations: 75.95 kB / 438.4 MB, free: 6.973 MB / 366.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.001924/0.141, allocations: 1.149 MB / 439.5 MB, free: 5.789 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002509/0.1436, allocations: 0.5263 MB / 440.1 MB, free: 5.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1436, allocations: 0 / 440.1 MB, free: 5.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.1455, allocations: 358.2 kB / 440.4 MB, free: 4.902 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004135/0.1459, allocations: 28.42 kB / 440.4 MB, free: 4.871 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006129/0.1521, allocations: 3.14 MB / 443.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.1524, allocations: 0.748 MB / 444.3 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001264/0.1526, allocations: 21.95 kB / 444.4 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.1527, allocations: 79.41 kB / 444.4 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1527, allocations: 3.938 kB / 444.4 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2442/0.3969, allocations: 6.401 MB / 450.8 MB, free: 30.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.71, allocations: 9.516 kB / 450.8 MB, free: 30.85 MB / 366.1 MB " [Timeout remaining time 647] (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 3.97456e-08 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.422672778833658]