Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002196/0.002196, allocations: 217.2 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.389/1.389, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 43.92 kB / 377.8 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2449, allocations: 53.36 MB / 431.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004072/0.249, allocations: 2.807 MB / 433.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001397/0.2504, allocations: 0.7595 MB / 434.7 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.2505, allocations: 7.938 kB / 434.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.2507, allocations: 39.58 kB / 434.8 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000179/0.2508, allocations: 95.25 kB / 434.8 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.2512, allocations: 111.7 kB / 435 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.2517, allocations: 386.5 kB / 435.3 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001874/0.2519, allocations: 60.83 kB / 435.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003213/0.2522, allocations: 163.5 kB / 435.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002507/0.2524, allocations: 175.3 kB / 435.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.022e-05/0.2525, allocations: 32 kB / 435.8 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.548e-05/0.2526, allocations: 40 kB / 435.8 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.679e-05/0.2527, allocations: 71.75 kB / 435.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.2528, allocations: 155.2 kB / 436 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004926/0.2533, allocations: 378.9 kB / 436.4 MB, free: 1.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.2533, allocations: 4 kB / 436.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2533, allocations: 0 / 436.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.2533, allocations: 0 / 436.4 MB, free: 1.605 MB / 334.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.001747/0.2551, allocations: 0.6126 MB / 437 MB, free: 0.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.2552, allocations: 12.03 kB / 437 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.577e-05/0.2552, allocations: 50.73 kB / 437.1 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002043/0.2554, allocations: 40.73 kB / 437.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004277/0.2559, allocations: 221 kB / 437.3 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.2559, allocations: 16.81 kB / 437.3 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.422e-05/0.2559, allocations: 24.33 kB / 437.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007681/0.2567, allocations: 317.8 kB / 437.7 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.2567, allocations: 0 / 437.7 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.2567, allocations: 4 kB / 437.7 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.2568, allocations: 12 kB / 437.7 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009166/0.2577, allocations: 301.5 kB / 438 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.2595, allocations: 0.9288 MB / 438.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00295/0.2625, allocations: 490.2 kB / 439.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000605/0.2631, allocations: 204.7 kB / 439.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.354e-05/0.2631, allocations: 4 kB / 439.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000612/0.2637, allocations: 239.7 kB / 439.8 MB, free: 14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.2637, allocations: 4 kB / 439.8 MB, free: 13.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001546/0.2653, allocations: 476.7 kB / 440.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.2654, allocations: 106.8 kB / 440.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.2656, allocations: 241 kB / 440.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.2656, allocations: 29.7 kB / 440.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.2658, allocations: 164.5 kB / 440.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.232e-05/0.2658, allocations: 75.33 kB / 440.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.939e-05/0.2659, allocations: 49.92 kB / 440.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.2661, allocations: 330.8 kB / 441.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004594/0.2666, allocations: 140.4 kB / 441.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000484/0.267, allocations: 184.2 kB / 441.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009371/0.268, allocations: 324 kB / 441.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.268, allocations: 0 / 441.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001062/0.269, allocations: 410.8 kB / 442.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/0.2691, allocations: 37.69 kB / 442.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.2691, allocations: 3.938 kB / 442.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.2691, allocations: 4 kB / 442.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001852/0.2709, allocations: 271.7 kB / 442.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004982/0.2759, allocations: 3.252 MB / 445.9 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003746/0.2763, allocations: 51.88 kB / 445.9 MB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.2763, allocations: 4 kB / 445.9 MB, free: 7.574 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.0001704/0.2765, allocations: 141.8 kB / 446.1 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.619e-05/0.2765, allocations: 35.84 kB / 446.1 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.162e-05/0.2766, allocations: 26.12 kB / 446.1 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2766, allocations: 4 kB / 446.1 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.2766, allocations: 0 / 446.1 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2766, allocations: 3.984 kB / 446.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.2785, allocations: 0.8729 MB / 447 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.2785, allocations: 0 / 447 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001822/0.2803, allocations: 271.6 kB / 447.3 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.2803, allocations: 0 / 447.3 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.2803, allocations: 4 kB / 447.3 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005049/0.2854, allocations: 3.24 MB / 450.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.2854, allocations: 7.969 kB / 450.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001504/0.2869, allocations: 0.6039 MB / 451.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.145e-05/0.287, allocations: 27.83 kB / 451.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/0.287, allocations: 8 kB / 451.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003415/0.2873, allocations: 35.95 kB / 451.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.228e-05/0.2874, allocations: 32.02 kB / 451.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.2874, allocations: 7.984 kB / 451.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001859/0.2876, allocations: 172.5 kB / 451.4 MB, free: 1.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2876, allocations: 3.938 kB / 451.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000462/0.2881, allocations: 83.89 kB / 451.5 MB, free: 1.688 MB / 350.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.001788/0.2899, allocations: 1.162 MB / 452.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002637/0.2925, allocations: 0.5538 MB / 453.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.2925, allocations: 3.938 kB / 453.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002074/0.2946, allocations: 383.8 kB / 453.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004231/0.295, allocations: 36.41 kB / 453.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005823/0.3008, allocations: 3.174 MB / 456.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.3012, allocations: 0.7557 MB / 457.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.3014, allocations: 29.92 kB / 457.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.3015, allocations: 83.41 kB / 457.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3015, allocations: 0 / 457.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03741/0.3389, allocations: 6.687 MB / 464.3 MB, free: 4.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.81, allocations: 3.875 kB / 464.3 MB, free: 4.82 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.410075324998616]