Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.001998/0.001998, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.002313/0.002313, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.574/1.574, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.CharacteristicThyristors,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 47.94 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1148, allocations: 53.33 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006266/0.1211, allocations: 4.006 MB / 430.3 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2625/0.3836, allocations: 1.621 MB / 432 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006504/0.3843, allocations: 12.09 kB / 432 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.3854, allocations: 251.5 kB / 432.2 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001181/0.3866, allocations: 301.1 kB / 432.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008041/0.3874, allocations: 268.9 kB / 432.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008295/0.3882, allocations: 0.7225 MB / 433.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003162/0.3885, allocations: 121.4 kB / 433.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004176/0.389, allocations: 291 kB / 433.9 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004311/0.3894, allocations: 311 kB / 434.2 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.885e-05/0.3895, allocations: 55.25 kB / 434.2 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003185/0.3898, allocations: 103.3 kB / 434.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001804/0.39, allocations: 144 kB / 434.5 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003112/0.3903, allocations: 306.4 kB / 434.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.3913, allocations: 0.724 MB / 435.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.319e-05/0.3913, allocations: 0 / 435.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.087e-06/0.3913, allocations: 0 / 435.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.229e-05/0.3914, allocations: 1.734 kB / 435.5 MB, free: 6.969 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001681/0.3931, allocations: 0.962 MB / 436.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.3931, allocations: 9.625 kB / 436.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.698e-05/0.3932, allocations: 80.05 kB / 436.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003036/0.3935, allocations: 82.8 kB / 436.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005376/0.394, allocations: 432 kB / 437.1 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/0.3941, allocations: 33.31 kB / 437.1 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.224e-05/0.3942, allocations: 43.3 kB / 437.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00078/0.3949, allocations: 439.2 kB / 437.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.3949, allocations: 0.5312 kB / 437.6 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.141e-05/0.395, allocations: 21.39 kB / 437.6 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.181e-05/0.395, allocations: 9.438 kB / 437.6 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006383/0.3957, allocations: 316.3 kB / 437.9 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002454/0.3981, allocations: 1.695 MB / 439.6 MB, free: 4.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006967/0.3988, allocations: 330.5 kB / 439.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.3991, allocations: 155.3 kB / 440.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.576e-05/0.3992, allocations: 7.016 kB / 440.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004298/0.3996, allocations: 263.3 kB / 440.3 MB, free: 4.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 6.672e-06/0.3996, allocations: 0 / 440.3 MB, free: 4.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002176/0.4018, allocations: 1.013 MB / 441.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.4018, allocations: 190.5 kB / 441.5 MB, free: 3.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006609/0.4025, allocations: 0.508 MB / 442.1 MB, free: 3.086 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.4025, allocations: 33.05 kB / 442.1 MB, free: 3.051 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00017/0.4027, allocations: 258.8 kB / 442.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.794e-05/0.4028, allocations: 136.7 kB / 442.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.4029, allocations: 80.2 kB / 442.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.748e-05/0.403, allocations: 359.1 kB / 442.9 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003162/0.4033, allocations: 119.9 kB / 443 MB, free: 2.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000308/0.4037, allocations: 217.1 kB / 443.2 MB, free: 2.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004915/0.4041, allocations: 272.4 kB / 443.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4041, allocations: 0 / 443.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008292/0.405, allocations: 474.5 kB / 444 MB, free: 1.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.405, allocations: 5.781 kB / 444 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.405, allocations: 1.844 kB / 444 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000589/0.4056, allocations: 159.4 kB / 444.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002314/0.4058, allocations: 45.55 kB / 444.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005649/0.4115, allocations: 6.658 MB / 450.8 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005511/0.412, allocations: 48.45 kB / 450.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.264e-05/0.4121, allocations: 17.16 kB / 450.9 MB, free: 11.21 MB / 366.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.000409/0.4125, allocations: 194.6 kB / 451.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.4126, allocations: 61.03 kB / 451.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.4127, allocations: 62.53 kB / 451.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.812e-06/0.4127, allocations: 4.938 kB / 451.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.4127, allocations: 0 / 451.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.4127, allocations: 3.125 kB / 451.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008156/0.4136, allocations: 492.5 kB / 451.7 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.4136, allocations: 2.312 kB / 451.7 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001514/0.4137, allocations: 28.91 kB / 451.7 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004991/0.4142, allocations: 157.5 kB / 451.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.524e-05/0.4142, allocations: 16.3 kB / 451.9 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006038/0.4203, allocations: 6.365 MB / 458.3 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.4203, allocations: 1.125 kB / 458.3 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.4215, allocations: 0.5022 MB / 458.8 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000229/0.4217, allocations: 162.1 kB / 458.9 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.61e-05/0.4218, allocations: 9.875 kB / 458.9 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003268/0.4221, allocations: 26.66 kB / 458.9 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/0.4223, allocations: 56.36 kB / 459 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.456e-05/0.4224, allocations: 14.23 kB / 459 MB, free: 3.938 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007001/0.4231, allocations: 367.7 kB / 459.4 MB, free: 3.773 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4231, allocations: 0 / 459.4 MB, free: 3.773 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001128/0.4242, allocations: 169.2 kB / 459.5 MB, free: 3.742 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,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * 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.003124/0.4273, allocations: 1.378 MB / 460.9 MB, free: 2.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.4289, allocations: 0.7876 MB / 461.7 MB, free: 2.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.4289, allocations: 1.688 kB / 461.7 MB, free: 2.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008926/0.4298, allocations: 0.644 MB / 462.4 MB, free: 1.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006429/0.4305, allocations: 115.4 kB / 462.5 MB, free: 1.691 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007451/0.4379, allocations: 4.282 MB / 466.7 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007549/0.4387, allocations: 0.864 MB / 467.6 MB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003082/0.439, allocations: 52.19 kB / 467.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002709/0.4393, allocations: 175.6 kB / 467.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4393, allocations: 0 / 467.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05826/0.4975, allocations: 14.63 MB / 482.5 MB, free: 6.277 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.68, allocations: 7.688 kB / 482.5 MB, free: 6.273 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable IdealThyristor1.off from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! Error: Could not read variable IdealThyristor2.off in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable IdealThyristor2.off from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! Error: Could not read variable booleanStep1.y in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv. Warning: Get data of variable booleanStep1.y from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.524258178993477]