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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 107.6 kB / 16.92 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 189.4 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 222.9 MB / 241.5 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 39.97 kB / 300.7 MB, free: 5.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1166, allocations: 49.44 MB / 350.2 MB, free: 4.277 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005904/0.1225, allocations: 3.947 MB / 354.1 MB, free: 308 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003069/0.1256, allocations: 1.441 MB / 355.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005871/0.1263, allocations: 11.94 kB / 355.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009272/0.1272, allocations: 246.8 kB / 355.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007478/0.128, allocations: 250.3 kB / 356 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007082/0.1287, allocations: 294.2 kB / 356.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001025/0.1298, allocations: 0.7047 MB / 357 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003702/0.1301, allocations: 173 kB / 357.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005482/0.1307, allocations: 279 kB / 357.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005122/0.1312, allocations: 306.7 kB / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001519/0.1314, allocations: 48 kB / 357.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003413/0.1317, allocations: 95.97 kB / 357.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002021/0.1319, allocations: 139.5 kB / 358.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003842/0.1323, allocations: 306.4 kB / 358.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008839/0.1332, allocations: 0.6929 MB / 359.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1332, allocations: 0 / 359.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1333, allocations: 0 / 359.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.1333, allocations: 0 / 359.1 MB, free: 11.34 MB / 302.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.001856/0.1351, allocations: 0.9375 MB / 360 MB, free: 10.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.1352, allocations: 8.031 kB / 360 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.1353, allocations: 82.7 kB / 360.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.1354, allocations: 64.19 kB / 360.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005496/0.136, allocations: 402.8 kB / 360.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.31e-05/0.136, allocations: 29.38 kB / 360.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.66e-05/0.1361, allocations: 43.94 kB / 360.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007647/0.1369, allocations: 449.5 kB / 361 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.1369, allocations: 3.938 kB / 361 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.336e-05/0.137, allocations: 16 kB / 361.1 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.137, allocations: 12 kB / 361.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006337/0.1376, allocations: 311.8 kB / 361.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002475/0.1401, allocations: 1.71 MB / 363.1 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007045/0.1408, allocations: 367 kB / 363.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000321/0.1412, allocations: 188.3 kB / 363.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.753e-05/0.1412, allocations: 4 kB / 363.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004384/0.1417, allocations: 262.3 kB / 363.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.144e-06/0.1417, allocations: 0 / 363.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002172/0.1439, allocations: 1.014 MB / 364.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.144, allocations: 191.8 kB / 365.1 MB, free: 4.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005736/0.1446, allocations: 0.4979 MB / 365.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.777e-05/0.1446, allocations: 33.7 kB / 365.6 MB, free: 4.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001881/0.1448, allocations: 252.4 kB / 365.9 MB, free: 4.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.1449, allocations: 122.3 kB / 366 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.145, allocations: 82.03 kB / 366.1 MB, free: 3.887 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.1452, allocations: 358.8 kB / 366.4 MB, free: 3.527 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.1455, allocations: 120.8 kB / 366.5 MB, free: 3.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003263/0.1458, allocations: 213.2 kB / 366.7 MB, free: 3.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005033/0.1463, allocations: 281 kB / 367 MB, free: 2.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1464, allocations: 0 / 367 MB, free: 2.883 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008067/0.1472, allocations: 476.8 kB / 367.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.1472, allocations: 11.06 kB / 367.5 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.1472, allocations: 4 kB / 367.5 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005017/0.1477, allocations: 163.3 kB / 367.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.148, allocations: 39.92 kB / 367.7 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1849/0.3328, allocations: 6.649 MB / 374.3 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004766/0.3333, allocations: 53.25 kB / 374.4 MB, free: 20.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.3334, allocations: 14.22 kB / 374.4 MB, free: 20.91 MB / 302.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.0002539/0.3336, allocations: 190.8 kB / 374.6 MB, free: 20.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.122e-05/0.3337, allocations: 52.62 kB / 374.7 MB, free: 20.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.3339, allocations: 63.55 kB / 374.7 MB, free: 20.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3339, allocations: 4.875 kB / 374.7 MB, free: 20.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3339, allocations: 3.438 kB / 374.7 MB, free: 20.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3339, allocations: 1.875 kB / 374.7 MB, free: 20.78 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005395/0.3344, allocations: 492.5 kB / 375.2 MB, free: 20.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3344, allocations: 0 / 375.2 MB, free: 20.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.3346, allocations: 30.25 kB / 375.2 MB, free: 20.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000432/0.335, allocations: 156.9 kB / 375.4 MB, free: 20.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.3351, allocations: 7.172 kB / 375.4 MB, free: 20.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003759/0.3388, allocations: 6.366 MB / 381.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3388, allocations: 0 / 381.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009384/0.3398, allocations: 0.5078 MB / 382.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.34, allocations: 155.9 kB / 382.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.686e-05/0.34, allocations: 8.406 kB / 382.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002914/0.3403, allocations: 32.08 kB / 382.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.3405, allocations: 56.59 kB / 382.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.3405, allocations: 9.328 kB / 382.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004124/0.341, allocations: 366.4 kB / 382.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.341, allocations: 3.828 kB / 382.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008276/0.3418, allocations: 175.8 kB / 383.1 MB, free: 13.96 MB / 302.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.001969/0.3438, allocations: 1.36 MB / 384.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.3449, allocations: 0.8181 MB / 385.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.345, allocations: 0 / 385.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006333/0.3456, allocations: 0.6518 MB / 385.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005707/0.3462, allocations: 129.4 kB / 386 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005841/0.352, allocations: 4.331 MB / 390.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/0.3524, allocations: 0.8615 MB / 391.2 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002274/0.3527, allocations: 48.3 kB / 391.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001858/0.3529, allocations: 169.5 kB / 391.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3529, allocations: 1.469 kB / 391.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04252/0.3954, allocations: 14.14 MB / 405.6 MB, free: 1.035 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.61, allocations: 7.375 kB / 405.6 MB, free: 1.031 MB / 302.1 MB (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.0024 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) 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) Reference file matches