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.001231/0.001231, allocations: 124 kB / 17.79 MB, free: 5.266 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.001238/0.001238, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.544/1.544, allocations: 225.6 MB / 249.1 MB, free: 3.637 MB / 190.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.001489/0.001489, allocations: 47.92 kB / 365.7 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09798/0.09947, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005548/0.105, allocations: 3.981 MB / 421.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002667/0.1077, allocations: 1.434 MB / 423.2 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002651/0.1079, allocations: 11.94 kB / 423.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008451/0.1088, allocations: 250.8 kB / 423.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006718/0.1095, allocations: 254.3 kB / 423.7 MB, free: 6.672 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007522/0.1102, allocations: 294.6 kB / 424 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009008/0.1111, allocations: 0.7085 MB / 424.7 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000261/0.1114, allocations: 116.9 kB / 424.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005007/0.1119, allocations: 291 kB / 425.1 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003898/0.1123, allocations: 306.7 kB / 425.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.257e-05/0.1123, allocations: 52 kB / 425.5 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002295/0.1126, allocations: 99.91 kB / 425.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.1127, allocations: 147.5 kB / 425.7 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003073/0.113, allocations: 298.5 kB / 426 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009286/0.114, allocations: 0.7119 MB / 426.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.114, allocations: 0 / 426.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.114, allocations: 0 / 426.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.114, allocations: 0 / 426.7 MB, free: 3.668 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.001917/0.1159, allocations: 0.9525 MB / 427.7 MB, free: 2.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.1159, allocations: 8.031 kB / 427.7 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001099/0.1161, allocations: 82.64 kB / 427.7 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.1162, allocations: 72.52 kB / 427.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005869/0.1168, allocations: 419.2 kB / 428.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.1168, allocations: 33.31 kB / 428.3 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.186e-05/0.1169, allocations: 39.94 kB / 428.3 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007901/0.1177, allocations: 445.5 kB / 428.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.1177, allocations: 0 / 428.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.274e-05/0.1177, allocations: 16 kB / 428.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.1177, allocations: 11.98 kB / 428.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000662/0.1184, allocations: 319.8 kB / 429.1 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002746/0.1211, allocations: 1.699 MB / 430.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007314/0.1219, allocations: 330 kB / 431.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003338/0.1222, allocations: 161.4 kB / 431.2 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.1222, allocations: 4 kB / 431.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004988/0.1227, allocations: 262.4 kB / 431.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.924e-06/0.1227, allocations: 0 / 431.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002449/0.1252, allocations: 1.01 MB / 432.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/0.1253, allocations: 187.9 kB / 432.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007176/0.126, allocations: 0.5018 MB / 433.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.265e-05/0.1261, allocations: 37.7 kB / 433.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/0.1263, allocations: 248.8 kB / 433.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.1264, allocations: 130.9 kB / 433.6 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.1266, allocations: 78.12 kB / 433.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002203/0.1268, allocations: 354.7 kB / 434 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000297/0.1271, allocations: 128.8 kB / 434.2 MB, free: 11.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004141/0.1275, allocations: 217.3 kB / 434.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005618/0.1281, allocations: 269.3 kB / 434.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1281, allocations: 0 / 434.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001019/0.1291, allocations: 473 kB / 435.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.1291, allocations: 4 kB / 435.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.1291, allocations: 7.938 kB / 435.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005882/0.1297, allocations: 163.4 kB / 435.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002383/0.13, allocations: 51.84 kB / 435.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006476/0.1364, allocations: 6.643 MB / 442 MB, free: 3.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.1369, allocations: 51.8 kB / 442 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-05/0.137, allocations: 24.03 kB / 442 MB, free: 3.262 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.0003205/0.1373, allocations: 192.1 kB / 442.2 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-05/0.1374, allocations: 55.61 kB / 442.3 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.1375, allocations: 56.77 kB / 442.3 MB, free: 2.957 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1375, allocations: 4 kB / 442.3 MB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.1375, allocations: 7.922 kB / 442.3 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1375, allocations: 0 / 442.3 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006076/0.1381, allocations: 497.1 kB / 442.8 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1381, allocations: 4 kB / 442.8 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.1383, allocations: 23.98 kB / 442.9 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000494/0.1388, allocations: 159.3 kB / 443 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.979e-05/0.1388, allocations: 12 kB / 443 MB, free: 2.203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1994/0.3382, allocations: 6.353 MB / 449.4 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3382, allocations: 0 / 449.4 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.3392, allocations: 0.4967 MB / 449.9 MB, free: 25.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/0.3394, allocations: 160.5 kB / 450 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.31e-05/0.3395, allocations: 8.125 kB / 450 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.3398, allocations: 40.94 kB / 450.1 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.3399, allocations: 53.42 kB / 450.1 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.34, allocations: 8.281 kB / 450.1 MB, free: 25.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003774/0.3403, allocations: 365.4 kB / 450.5 MB, free: 25.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3403, allocations: 0 / 450.5 MB, free: 25.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007637/0.3411, allocations: 167.8 kB / 450.7 MB, free: 25.61 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.002446/0.3435, allocations: 1.377 MB / 452 MB, free: 24.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.3446, allocations: 0.7843 MB / 452.8 MB, free: 24.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3446, allocations: 0 / 452.8 MB, free: 24.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005896/0.3452, allocations: 0.6426 MB / 453.5 MB, free: 24.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005501/0.3457, allocations: 112.6 kB / 453.6 MB, free: 24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006394/0.3521, allocations: 4.253 MB / 457.8 MB, free: 22.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.3525, allocations: 0.8578 MB / 458.7 MB, free: 21.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002491/0.3528, allocations: 47.11 kB / 458.7 MB, free: 21.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.353, allocations: 167.4 kB / 458.9 MB, free: 21.64 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.353, allocations: 0 / 458.9 MB, free: 21.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06978/0.4228, allocations: 14.53 MB / 473.4 MB, free: 17.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.82, allocations: 10.22 kB / 473.4 MB, free: 17.16 MB / 366.1 MB " [Timeout remaining time 646] (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: 17.24170505302027]