Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.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.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",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.001129/0.001129, allocations: 114.2 kB / 17.07 MB, free: 5.988 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.001144/0.001144, allocations: 195 kB / 18 MB, free: 5.074 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 51.91 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2826, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004458/0.2871, allocations: 2.736 MB / 403 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.2884, allocations: 0.705 MB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.2886, allocations: 7.938 kB / 403.7 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.2887, allocations: 35.64 kB / 403.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.2889, allocations: 87.2 kB / 403.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003245/0.2893, allocations: 107.8 kB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004542/0.2898, allocations: 382.5 kB / 404.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.2899, allocations: 72.7 kB / 404.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002381/0.2902, allocations: 155.5 kB / 404.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.2904, allocations: 171.3 kB / 404.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.38e-05/0.2905, allocations: 32 kB / 404.7 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.063e-05/0.2905, allocations: 32 kB / 404.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.871e-05/0.2906, allocations: 79.67 kB / 404.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.2908, allocations: 151.3 kB / 405 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004156/0.2912, allocations: 361.5 kB / 405.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2912, allocations: 0 / 405.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2912, allocations: 0 / 405.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.2912, allocations: 0 / 405.3 MB, free: 3.703 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0016/0.2929, allocations: 0.6832 MB / 406 MB, free: 2.969 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.2929, allocations: 12.03 kB / 406 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.957e-05/0.293, allocations: 50.73 kB / 406.1 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.309e-05/0.2931, allocations: 32.75 kB / 406.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.2935, allocations: 268.9 kB / 406.4 MB, free: 2.562 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.2935, allocations: 24.73 kB / 406.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.365e-05/0.2936, allocations: 24.33 kB / 406.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008728/0.2945, allocations: 309.9 kB / 406.7 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2945, allocations: 3.984 kB / 406.7 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.136e-05/0.2945, allocations: 8 kB / 406.7 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.2945, allocations: 4 kB / 406.7 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009238/0.2955, allocations: 293.5 kB / 407 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001812/0.2973, allocations: 0.9649 MB / 408 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002777/0.3001, allocations: 498.2 kB / 408.5 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006513/0.3007, allocations: 211.5 kB / 408.7 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.3008, allocations: 4 kB / 408.7 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006453/0.3014, allocations: 243.4 kB / 408.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.674e-06/0.3014, allocations: 0 / 408.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001545/0.303, allocations: 461.6 kB / 409.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/0.3031, allocations: 106.8 kB / 409.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002323/0.3033, allocations: 237 kB / 409.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.3034, allocations: 33.7 kB / 409.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.3035, allocations: 160.3 kB / 409.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.292e-05/0.3036, allocations: 79.34 kB / 410 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.996e-05/0.3037, allocations: 45.89 kB / 410 MB, free: 14.74 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.3038, allocations: 338.8 kB / 410.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005462/0.3043, allocations: 136.4 kB / 410.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004804/0.3048, allocations: 180.9 kB / 410.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008817/0.3057, allocations: 316 kB / 411 MB, free: 13.75 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3057, allocations: 0 / 411 MB, free: 13.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001189/0.3069, allocations: 406.9 kB / 411.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.307, allocations: 33.69 kB / 411.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.307, allocations: 7.984 kB / 411.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.307, allocations: 0 / 411.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001707/0.3087, allocations: 247.6 kB / 411.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004764/0.3135, allocations: 3.396 MB / 415 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004042/0.3139, allocations: 55.81 kB / 415.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.314, allocations: 7.938 kB / 415.1 MB, free: 9.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001724/0.3141, allocations: 145.9 kB / 415.2 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.233e-05/0.3142, allocations: 19.86 kB / 415.3 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.293e-05/0.3143, allocations: 34.17 kB / 415.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.3143, allocations: 0 / 415.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.3143, allocations: 4 kB / 415.3 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.3143, allocations: 3.984 kB / 415.3 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001851/0.3162, allocations: 0.8958 MB / 416.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3162, allocations: 0 / 416.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/0.3178, allocations: 227.8 kB / 416.4 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.404e-05/0.3179, allocations: 0 / 416.4 MB, free: 7.926 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.785e-05/0.318, allocations: 11.98 kB / 416.4 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004674/0.3227, allocations: 3.42 MB / 419.8 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3227, allocations: 0 / 419.8 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001547/0.3242, allocations: 0.5925 MB / 420.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.742e-05/0.3243, allocations: 108.9 kB / 420.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.429e-05/0.3244, allocations: 4 kB / 420.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003978/0.3248, allocations: 39.95 kB / 420.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.3249, allocations: 31.95 kB / 420.6 MB, free: 3.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.031e-05/0.325, allocations: 4 kB / 420.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001608/0.3251, allocations: 176.5 kB / 420.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3251, allocations: 0 / 420.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004716/0.3256, allocations: 75.95 kB / 420.9 MB, free: 3.164 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001851/0.3275, allocations: 1.147 MB / 422 MB, free: 1.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002459/0.33, allocations: 0.5419 MB / 422.6 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.33, allocations: 0 / 422.6 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00192/0.3319, allocations: 355.8 kB / 422.9 MB, free: 1.078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005268/0.3325, allocations: 52.22 kB / 423 MB, free: 1.023 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005893/0.3384, allocations: 3.126 MB / 426.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.3387, allocations: 0.7519 MB / 426.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001486/0.3389, allocations: 25.94 kB / 426.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/0.3391, allocations: 79.41 kB / 426.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3391, allocations: 0 / 426.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.3678, allocations: 6.375 MB / 433.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.62, allocations: 8.625 kB / 433.3 MB, free: 6.703 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.csv --start-time 0 --stop-time 0.0002 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-08 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches