Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001767/0.001767, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001978/0.001978, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 230.4 MB / 254 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 63.91 kB / 373 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1096, allocations: 53.37 MB / 426.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004593/0.1142, allocations: 2.787 MB / 429.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.1159, allocations: 0.7478 MB / 429.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002498/0.1161, allocations: 4 kB / 429.9 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002026/0.1163, allocations: 47.56 kB / 429.9 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002828/0.1166, allocations: 91.19 kB / 430 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004307/0.117, allocations: 115.7 kB / 430.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005214/0.1176, allocations: 382.6 kB / 430.5 MB, free: 432 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001867/0.1177, allocations: 56.72 kB / 430.6 MB, free: 368 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003817/0.1181, allocations: 167.4 kB / 430.7 MB, free: 200 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002853/0.1184, allocations: 171.3 kB / 430.9 MB, free: 28 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2174/0.3359, allocations: 37.02 kB / 430.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002273/0.3361, allocations: 39.34 kB / 431 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.3362, allocations: 66.38 kB / 431 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003039/0.3365, allocations: 158.8 kB / 431.2 MB, free: 8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006852/0.3372, allocations: 379.2 kB / 431.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.3372, allocations: 1.031 kB / 431.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3372, allocations: 0 / 431.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.3372, allocations: 0 / 431.6 MB, free: 7.945 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.001849/0.3391, allocations: 0.6893 MB / 432.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.3391, allocations: 9.688 kB / 432.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.326e-05/0.3392, allocations: 53.5 kB / 432.3 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002117/0.3394, allocations: 42.45 kB / 432.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.3397, allocations: 279.3 kB / 432.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.3398, allocations: 15.31 kB / 432.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.224e-05/0.3398, allocations: 21.55 kB / 432.7 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007848/0.3406, allocations: 319.8 kB / 433 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3406, allocations: 3.047 kB / 433 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.04e-05/0.3407, allocations: 7.969 kB / 433 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3407, allocations: 5.75 kB / 433 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009429/0.3416, allocations: 297.9 kB / 433.3 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001765/0.3434, allocations: 0.9604 MB / 434.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002873/0.3462, allocations: 497.8 kB / 434.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006715/0.3469, allocations: 199.7 kB / 434.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.156e-05/0.3469, allocations: 2.406 kB / 434.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006615/0.3476, allocations: 246.7 kB / 435.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.335e-06/0.3476, allocations: 4 kB / 435.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001633/0.3492, allocations: 468 kB / 435.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.279e-05/0.3493, allocations: 112.8 kB / 435.8 MB, free: 6.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002515/0.3495, allocations: 236.9 kB / 436 MB, free: 6.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.205e-05/0.3496, allocations: 32.17 kB / 436 MB, free: 6.219 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.307e-05/0.3497, allocations: 163.4 kB / 436.2 MB, free: 6.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.31e-05/0.3497, allocations: 76.89 kB / 436.3 MB, free: 6.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.3498, allocations: 47.22 kB / 436.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.943e-05/0.3499, allocations: 331.4 kB / 436.6 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005003/0.3504, allocations: 143 kB / 436.8 MB, free: 5.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005328/0.3509, allocations: 186.5 kB / 436.9 MB, free: 5.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009645/0.3519, allocations: 319.8 kB / 437.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3519, allocations: 0 / 437.3 MB, free: 5.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001193/0.3531, allocations: 411.9 kB / 437.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.018e-05/0.3531, allocations: 36 kB / 437.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3531, allocations: 1.703 kB / 437.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.3532, allocations: 2.094 kB / 437.7 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001779/0.3549, allocations: 274.6 kB / 438 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004292/0.3592, allocations: 3.441 MB / 441.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004461/0.3597, allocations: 50.06 kB / 441.5 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.3597, allocations: 7.953 kB / 441.5 MB, free: 2.508 MB / 350.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.0001996/0.3599, allocations: 151 kB / 441.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.627e-05/0.36, allocations: 28.55 kB / 441.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.712e-05/0.3601, allocations: 33.02 kB / 441.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.3601, allocations: 2.5 kB / 441.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3601, allocations: 2.453 kB / 441.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3601, allocations: 5.719 kB / 441.7 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.362, allocations: 0.9046 MB / 442.6 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.362, allocations: 1.188 kB / 442.6 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/0.3637, allocations: 260.2 kB / 442.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.3637, allocations: 3.406 kB / 442.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/0.3638, allocations: 8.609 kB / 442.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004656/0.3684, allocations: 3.442 MB / 446.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3684, allocations: 1.094 kB / 446.3 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001659/0.3701, allocations: 0.6097 MB / 446.9 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.3702, allocations: 101.9 kB / 447 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.499e-05/0.3702, allocations: 14.47 kB / 447 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003783/0.3706, allocations: 42.03 kB / 447.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.3707, allocations: 30.89 kB / 447.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.811e-05/0.3708, allocations: 10.34 kB / 447.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002163/0.371, allocations: 172.1 kB / 447.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.371, allocations: 1.062 kB / 447.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005403/0.3715, allocations: 79.52 kB / 447.3 MB, free: 14.15 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.002037/0.3735, allocations: 1.157 MB / 448.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002561/0.3761, allocations: 0.5598 MB / 449.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.3761, allocations: 1.25 kB / 449.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.3781, allocations: 377.6 kB / 449.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004476/0.3785, allocations: 45.2 kB / 449.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006372/0.3849, allocations: 3.179 MB / 452.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.3853, allocations: 0.7518 MB / 453.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000142/0.3854, allocations: 22.25 kB / 453.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.3856, allocations: 80.42 kB / 453.5 MB, free: 10.42 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3856, allocations: 0 / 453.5 MB, free: 10.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0373/0.4229, allocations: 6.502 MB / 460 MB, free: 8.195 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.89, allocations: 9.141 kB / 460 MB, free: 8.188 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 14.538066698005423]