Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.001721/0.001721, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001999/0.001999, allocations: 190.2 kB / 23.71 MB, free: 4.406 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.478/1.478, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.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.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002611/0.002611, allocations: 43.92 kB / 370.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2971, allocations: 52.19 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005397/0.3025, allocations: 3.623 MB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002596/0.3051, allocations: 1.383 MB / 427.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002393/0.3054, allocations: 11.94 kB / 427.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007844/0.3062, allocations: 254.8 kB / 427.8 MB, free: 9.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005809/0.3067, allocations: 258.3 kB / 428.1 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006555/0.3074, allocations: 289.2 kB / 428.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007447/0.3081, allocations: 0.7162 MB / 429.1 MB, free: 7.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002363/0.3084, allocations: 113.4 kB / 429.2 MB, free: 7.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003409/0.3087, allocations: 279 kB / 429.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003553/0.3091, allocations: 278.7 kB / 429.8 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.964e-05/0.3091, allocations: 52 kB / 429.8 MB, free: 7.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000222/0.3094, allocations: 107.9 kB / 429.9 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001645/0.3095, allocations: 147.5 kB / 430.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002556/0.3098, allocations: 238.8 kB / 430.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007975/0.3106, allocations: 0.7235 MB / 431 MB, free: 5.926 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3106, allocations: 0 / 431 MB, free: 5.926 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3106, allocations: 0 / 431 MB, free: 5.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.3106, allocations: 0 / 431 MB, free: 5.926 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001708/0.3123, allocations: 0.8802 MB / 431.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.3123, allocations: 8.031 kB / 431.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.713e-05/0.3124, allocations: 78.7 kB / 432 MB, free: 4.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.3126, allocations: 76.52 kB / 432 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005596/0.3131, allocations: 348.3 kB / 432.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.3131, allocations: 33.31 kB / 432.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.587e-05/0.3132, allocations: 43.94 kB / 432.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000847/0.314, allocations: 0.5269 MB / 433 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.3141, allocations: 0 / 433 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.903e-05/0.3141, allocations: 16 kB / 433 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.374e-05/0.3141, allocations: 12 kB / 433 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006185/0.3147, allocations: 319.7 kB / 433.3 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00247/0.3172, allocations: 1.563 MB / 434.9 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006688/0.3179, allocations: 330.9 kB / 435.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003092/0.3182, allocations: 152.8 kB / 435.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.3182, allocations: 7.984 kB / 435.4 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005295/0.3187, allocations: 369.2 kB / 435.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.924e-06/0.3188, allocations: 0 / 435.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002067/0.3208, allocations: 0.7198 MB / 436.5 MB, free: 188 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/0.321, allocations: 166.1 kB / 436.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006191/0.3216, allocations: 0.4979 MB / 437.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.007e-05/0.3216, allocations: 37.7 kB / 437.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/0.3218, allocations: 252.8 kB / 437.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.3219, allocations: 134.9 kB / 437.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.3221, allocations: 82.08 kB / 437.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3223, allocations: 358.8 kB / 438 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002564/0.3225, allocations: 120.8 kB / 438.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003988/0.3229, allocations: 332.9 kB / 438.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005149/0.3234, allocations: 277.3 kB / 438.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.3234, allocations: 0 / 438.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008743/0.3243, allocations: 477 kB / 439.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.3243, allocations: 4 kB / 439.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.3243, allocations: 4 kB / 439.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005335/0.3249, allocations: 155.3 kB / 439.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002355/0.3251, allocations: 55.94 kB / 439.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005618/0.3307, allocations: 6.207 MB / 445.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004334/0.3312, allocations: 55.7 kB / 445.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.3312, allocations: 16 kB / 445.6 MB, free: 6.379 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002811/0.3315, allocations: 183.9 kB / 445.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.454e-05/0.3316, allocations: 59.61 kB / 445.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.3326, allocations: 0.4895 MB / 446.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.3326, allocations: 4 kB / 446.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.3326, allocations: 0 / 446.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3326, allocations: 7.922 kB / 446.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005477/0.3332, allocations: 412.3 kB / 446.8 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.3332, allocations: 4 kB / 446.8 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001422/0.3333, allocations: 32.11 kB / 446.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004403/0.3337, allocations: 155.3 kB / 447 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.817e-05/0.3338, allocations: 8 kB / 447 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005314/0.3391, allocations: 5.922 MB / 452.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3391, allocations: 0 / 452.9 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.3401, allocations: 0.5153 MB / 453.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/0.3404, allocations: 79.56 kB / 453.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.423e-05/0.3404, allocations: 8 kB / 453.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002796/0.3407, allocations: 31.97 kB / 453.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/0.3409, allocations: 59.84 kB / 453.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.3409, allocations: 15.98 kB / 453.6 MB, free: 13.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004687/0.3414, allocations: 363 kB / 453.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3414, allocations: 0 / 453.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000805/0.3422, allocations: 175.7 kB / 454.1 MB, free: 13.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00296/0.3451, allocations: 1.395 MB / 455.5 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001238/0.3464, allocations: 0.7873 MB / 456.3 MB, free: 11.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3464, allocations: 0 / 456.3 MB, free: 11.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007804/0.3471, allocations: 0.6429 MB / 456.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005919/0.3477, allocations: 132.2 kB / 457.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006472/0.3542, allocations: 4.254 MB / 461.3 MB, free: 6.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.3545, allocations: 267.2 kB / 461.6 MB, free: 5.738 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002079/0.3547, allocations: 48.11 kB / 461.6 MB, free: 5.691 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002311/0.3549, allocations: 167.4 kB / 461.8 MB, free: 5.527 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.355, allocations: 0 / 461.8 MB, free: 5.527 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06795/0.4229, allocations: 15.23 MB / 477 MB, free: 6.508 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.19, allocations: 3.984 kB / 477 MB, free: 6.504 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00118765 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable IdealThyristor1.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable IdealThyristor1.off from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! Error: Could not read variable IdealThyristor2.off in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable IdealThyristor2.off from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! Error: Could not read variable booleanStep1.y in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable booleanStep1.y from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.9837347259745]