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.001387/0.001397, allocations: 113 kB / 17.07 MB, free: 6.016 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.001503/0.001503, allocations: 191 kB / 18 MB, free: 5.098 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.385/1.385, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 51.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3027, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005784/0.3085, allocations: 3.962 MB / 404.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002942/0.3115, allocations: 1.426 MB / 405.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005754/0.3122, allocations: 11.94 kB / 405.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009998/0.3132, allocations: 246.8 kB / 405.9 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008961/0.3141, allocations: 258.3 kB / 406.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008339/0.3149, allocations: 294.2 kB / 406.4 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009858/0.3159, allocations: 0.7085 MB / 407.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003427/0.3163, allocations: 172.9 kB / 407.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005167/0.3168, allocations: 279 kB / 407.6 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004568/0.3173, allocations: 298.7 kB / 407.9 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.3174, allocations: 52 kB / 407.9 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002739/0.3177, allocations: 99.95 kB / 408 MB, free: 1.039 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001717/0.3179, allocations: 147.4 kB / 408.2 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003094/0.3182, allocations: 298.5 kB / 408.4 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008271/0.319, allocations: 0.7031 MB / 409.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.319, allocations: 0 / 409.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.319, allocations: 0 / 409.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.3191, allocations: 0 / 409.2 MB, free: 15.9 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.001658/0.3207, allocations: 0.9641 MB / 410.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.3208, allocations: 8.031 kB / 410.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.086e-05/0.3209, allocations: 78.72 kB / 410.2 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.321, allocations: 72.45 kB / 410.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005299/0.3215, allocations: 423.1 kB / 410.7 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.962e-05/0.3216, allocations: 29.38 kB / 410.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.521e-05/0.3216, allocations: 43.94 kB / 410.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007215/0.3224, allocations: 445.5 kB / 411.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.3224, allocations: 0 / 411.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.3224, allocations: 16 kB / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.3224, allocations: 12 kB / 411.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005887/0.323, allocations: 315.8 kB / 411.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00224/0.3253, allocations: 1.707 MB / 413.2 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006782/0.326, allocations: 362.9 kB / 413.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000311/0.3263, allocations: 189.4 kB / 413.8 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.038e-05/0.3264, allocations: 4 kB / 413.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004402/0.3268, allocations: 254.5 kB / 414 MB, free: 10.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.803e-06/0.3268, allocations: 0 / 414 MB, free: 10.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002125/0.3289, allocations: 1.018 MB / 415 MB, free: 9.637 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.3291, allocations: 199.8 kB / 415.2 MB, free: 9.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005568/0.3296, allocations: 0.4939 MB / 415.7 MB, free: 8.898 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.3297, allocations: 41.69 kB / 415.8 MB, free: 8.852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/0.3299, allocations: 252.8 kB / 416 MB, free: 8.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.33, allocations: 126.9 kB / 416.1 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.3301, allocations: 78.12 kB / 416.2 MB, free: 8.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002224/0.3304, allocations: 362.8 kB / 416.6 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.3306, allocations: 120.8 kB / 416.7 MB, free: 7.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003319/0.331, allocations: 209.3 kB / 416.9 MB, free: 7.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000474/0.3314, allocations: 273.3 kB / 417.2 MB, free: 7.391 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.3315, allocations: 0 / 417.2 MB, free: 7.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007958/0.3323, allocations: 489 kB / 417.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.3323, allocations: 4 kB / 417.6 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.3323, allocations: 0 / 417.6 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005223/0.3328, allocations: 159.3 kB / 417.8 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.3331, allocations: 43.86 kB / 417.8 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004916/0.338, allocations: 6.651 MB / 424.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004101/0.3384, allocations: 55.81 kB / 424.6 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.689e-05/0.3385, allocations: 16 kB / 424.6 MB, free: 15.41 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.0002993/0.3388, allocations: 181.7 kB / 424.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.99e-05/0.3389, allocations: 59.61 kB / 424.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.339, allocations: 68.75 kB / 424.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.339, allocations: 4 kB / 424.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.339, allocations: 128 / 424.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.339, allocations: 0 / 424.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004792/0.3395, allocations: 497.1 kB / 425.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3395, allocations: 0 / 425.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.3396, allocations: 27.98 kB / 425.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004258/0.3401, allocations: 163.2 kB / 425.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/0.3401, allocations: 12 kB / 425.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004686/0.3448, allocations: 6.352 MB / 431.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.3448, allocations: 11.86 kB / 431.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.3459, allocations: 0.5079 MB / 432.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.3462, allocations: 160.6 kB / 432.6 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.07e-05/0.3462, allocations: 11.94 kB / 432.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.3465, allocations: 31.97 kB / 432.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.3467, allocations: 55.86 kB / 432.7 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.3467, allocations: 8 kB / 432.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004076/0.3472, allocations: 367.1 kB / 433 MB, free: 6.246 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3472, allocations: 0 / 433 MB, free: 6.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007846/0.348, allocations: 171.8 kB / 433.2 MB, free: 6.078 MB / 350.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.002149/0.3501, allocations: 1.363 MB / 434.6 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001303/0.3514, allocations: 0.8108 MB / 435.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.289e-06/0.3514, allocations: 0 / 435.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007349/0.3522, allocations: 0.6624 MB / 436.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005874/0.3528, allocations: 124.8 kB / 436.2 MB, free: 3.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006368/0.3592, allocations: 4.262 MB / 440.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004664/0.3597, allocations: 0.8634 MB / 441.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000242/0.3599, allocations: 52.16 kB / 441.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.3602, allocations: 171.4 kB / 441.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3602, allocations: 0 / 441.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04644/0.4066, allocations: 14.39 MB / 455.9 MB, free: 15.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.44, allocations: 8.5 kB / 455.9 MB, free: 15.5 MB / 382.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