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.001425/0.001425, allocations: 111.1 kB / 20.44 MB, free: 1.34 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.002037/0.002037, allocations: 208.2 kB / 23.72 MB, free: 4.527 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.417/1.417, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001533/0.001533, allocations: 47.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.286, allocations: 53.36 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004305/0.2903, allocations: 2.603 MB / 433.7 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.2918, allocations: 0.709 MB / 434.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.2919, allocations: 4 kB / 434.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.2921, allocations: 35.58 kB / 434.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.2923, allocations: 99.19 kB / 434.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003578/0.2926, allocations: 115.8 kB / 434.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004915/0.2931, allocations: 382.5 kB / 435 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.2933, allocations: 66.56 kB / 435.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002829/0.2936, allocations: 155.5 kB / 435.2 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002186/0.2938, allocations: 175.3 kB / 435.4 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.966e-05/0.2938, allocations: 40 kB / 435.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.967e-05/0.2939, allocations: 40 kB / 435.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.687e-05/0.294, allocations: 63.81 kB / 435.5 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.2941, allocations: 131.4 kB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004338/0.2946, allocations: 378.5 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2946, allocations: 0 / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.2946, allocations: 7.922 kB / 436.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.2946, allocations: 0 / 436.1 MB, free: 1.66 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.00156/0.2961, allocations: 0.6113 MB / 436.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.2962, allocations: 12.03 kB / 436.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.453e-05/0.2963, allocations: 54.73 kB / 436.7 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.2965, allocations: 48.73 kB / 436.8 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000423/0.2969, allocations: 217 kB / 437 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.2969, allocations: 12.81 kB / 437 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.728e-05/0.297, allocations: 24.38 kB / 437 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007915/0.2978, allocations: 339.5 kB / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.2978, allocations: 0 / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.2978, allocations: 15.94 kB / 437.4 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.2978, allocations: 11.92 kB / 437.4 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009938/0.2988, allocations: 293.5 kB / 437.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.3006, allocations: 0.8626 MB / 438.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002686/0.3033, allocations: 494.2 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000662/0.3039, allocations: 204.7 kB / 439.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.383e-05/0.304, allocations: 7.938 kB / 439.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007232/0.3047, allocations: 265.9 kB / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.344e-06/0.3047, allocations: 0 / 439.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001644/0.3063, allocations: 473.5 kB / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.198e-05/0.3064, allocations: 110.8 kB / 440.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002619/0.3067, allocations: 241 kB / 440.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/0.3067, allocations: 33.7 kB / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.3069, allocations: 164.5 kB / 440.5 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.731e-05/0.3069, allocations: 71.38 kB / 440.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.307, allocations: 49.92 kB / 440.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3072, allocations: 338.8 kB / 440.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004807/0.3077, allocations: 166.1 kB / 441.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005128/0.3082, allocations: 239.6 kB / 441.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009135/0.3091, allocations: 320.1 kB / 441.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3091, allocations: 0 / 441.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001115/0.3102, allocations: 444.5 kB / 442.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.209e-05/0.3103, allocations: 33.7 kB / 442.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3103, allocations: 0 / 442.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.3103, allocations: 8.062 kB / 442.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/0.3119, allocations: 267.6 kB / 442.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004605/0.3165, allocations: 3.224 MB / 445.6 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003824/0.3168, allocations: 56.09 kB / 445.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.835e-05/0.3169, allocations: 11.98 kB / 445.7 MB, free: 7.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.0002438/0.3171, allocations: 141.7 kB / 445.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.807e-05/0.3172, allocations: 27.81 kB / 445.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.859e-05/0.3172, allocations: 30.11 kB / 445.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.3172, allocations: 4 kB / 445.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.3172, allocations: 0 / 445.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3172, allocations: 4 kB / 445.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00182/0.3191, allocations: 0.8327 MB / 446.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.3191, allocations: 0 / 446.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001608/0.3207, allocations: 267.7 kB / 447 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3207, allocations: 3.938 kB / 447 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.762e-05/0.3207, allocations: 8 kB / 447 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004531/0.3252, allocations: 3.224 MB / 450.2 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.3252, allocations: 4.031 kB / 450.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.3268, allocations: 0.6052 MB / 450.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.458e-05/0.3268, allocations: 35.69 kB / 450.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.111e-05/0.3269, allocations: 8.062 kB / 450.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003254/0.3272, allocations: 39.95 kB / 450.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.272e-05/0.3273, allocations: 31.89 kB / 450.9 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-05/0.3273, allocations: 11.98 kB / 450.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001751/0.3275, allocations: 172.5 kB / 451.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3275, allocations: 0 / 451.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004745/0.328, allocations: 75.95 kB / 451.2 MB, free: 1.68 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.001878/0.3299, allocations: 1.164 MB / 452.3 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002465/0.3323, allocations: 0.5826 MB / 452.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3323, allocations: 0 / 452.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001859/0.3342, allocations: 383.7 kB / 453.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004298/0.3346, allocations: 40.36 kB / 453.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005767/0.3404, allocations: 3.294 MB / 456.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001568/0.3405, allocations: 154 kB / 456.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001157/0.3407, allocations: 21.95 kB / 456.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.3408, allocations: 79.41 kB / 456.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3408, allocations: 0 / 456.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03551/0.3763, allocations: 7.436 MB / 464.3 MB, free: 4.531 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.61, allocations: 14.33 kB / 464.3 MB, free: 4.523 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.145273376983823]