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.001538/0.001538, allocations: 111.7 kB / 17.05 MB, free: 5.711 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.001252/0.001253, allocations: 192 kB / 18 MB, free: 5.051 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.001422/0.001422, allocations: 47.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2876, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004229/0.2918, allocations: 2.735 MB / 403 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.2932, allocations: 0.6972 MB / 403.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.2934, allocations: 4 kB / 403.7 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001614/0.2935, allocations: 39.58 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001769/0.2937, allocations: 83.27 kB / 403.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003292/0.2941, allocations: 115.7 kB / 403.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004512/0.2945, allocations: 374.6 kB / 404.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.2947, allocations: 88.69 kB / 404.4 MB, free: 4.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002309/0.295, allocations: 147.5 kB / 404.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002286/0.2952, allocations: 171.3 kB / 404.7 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.101e-05/0.2953, allocations: 32 kB / 404.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.04e-05/0.2954, allocations: 32 kB / 404.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.106e-05/0.2954, allocations: 67.81 kB / 404.8 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000168/0.2956, allocations: 159.2 kB / 404.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004432/0.2961, allocations: 369.5 kB / 405.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2961, allocations: 3.938 kB / 405.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2961, allocations: 4 kB / 405.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.2961, allocations: 0 / 405.3 MB, free: 3.73 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.2977, allocations: 0.6752 MB / 406 MB, free: 3.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.2978, allocations: 12.03 kB / 406 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.347e-05/0.2978, allocations: 50.73 kB / 406.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.029e-05/0.2979, allocations: 32.75 kB / 406.1 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004759/0.2984, allocations: 272.9 kB / 406.4 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.2984, allocations: 16.81 kB / 406.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.856e-05/0.2985, allocations: 24.33 kB / 406.4 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008077/0.2993, allocations: 305.9 kB / 406.7 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.2993, allocations: 3.938 kB / 406.7 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.089e-05/0.2994, allocations: 19.98 kB / 406.7 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.2994, allocations: 4 kB / 406.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009759/0.3004, allocations: 289.5 kB / 407 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.3022, allocations: 0.9611 MB / 408 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002904/0.3051, allocations: 0.4942 MB / 408.5 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006383/0.3057, allocations: 204.7 kB / 408.7 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/0.3058, allocations: 4 kB / 408.7 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007151/0.3065, allocations: 239.4 kB / 408.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.694e-06/0.3065, allocations: 0 / 408.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001584/0.3081, allocations: 465.6 kB / 409.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.3082, allocations: 106.8 kB / 409.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000263/0.3085, allocations: 233 kB / 409.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/0.3085, allocations: 33.7 kB / 409.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.3086, allocations: 164.3 kB / 409.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.981e-05/0.3087, allocations: 67.44 kB / 409.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.3088, allocations: 49.88 kB / 410 MB, free: 14.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.309, allocations: 334.8 kB / 410.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004899/0.3095, allocations: 140.3 kB / 410.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005079/0.31, allocations: 180.9 kB / 410.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000967/0.311, allocations: 312.1 kB / 410.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.311, allocations: 4 kB / 410.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001143/0.3122, allocations: 402.9 kB / 411.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.336e-05/0.3122, allocations: 37.69 kB / 411.4 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3123, allocations: 0 / 411.4 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.3123, allocations: 4 kB / 411.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/0.314, allocations: 239.6 kB / 411.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005142/0.3191, allocations: 3.408 MB / 415 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000433/0.3196, allocations: 55.97 kB / 415.1 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.228e-05/0.3196, allocations: 4 kB / 415.1 MB, free: 9.367 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.0002129/0.3199, allocations: 145.7 kB / 415.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.977e-05/0.3199, allocations: 27.84 kB / 415.2 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.609e-05/0.32, allocations: 30.19 kB / 415.3 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.32, allocations: 0 / 415.3 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.32, allocations: 0 / 415.3 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.32, allocations: 7.984 kB / 415.3 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/0.3219, allocations: 0.8958 MB / 416.2 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3219, allocations: 0 / 416.2 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/0.3235, allocations: 235.7 kB / 416.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.3235, allocations: 0 / 416.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.3236, allocations: 8 kB / 416.4 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00477/0.3284, allocations: 3.42 MB / 419.8 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3284, allocations: 0 / 419.8 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.33, allocations: 0.5927 MB / 420.4 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.692e-05/0.3301, allocations: 108.9 kB / 420.5 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.234e-05/0.3301, allocations: 3.984 kB / 420.5 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003613/0.3305, allocations: 39.95 kB / 420.6 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.3306, allocations: 35.97 kB / 420.6 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.641e-05/0.3306, allocations: 4 kB / 420.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001838/0.3308, allocations: 172.5 kB / 420.8 MB, free: 3.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3308, allocations: 0 / 420.8 MB, free: 3.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004688/0.3313, allocations: 71.95 kB / 420.9 MB, free: 3.207 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.001922/0.3332, allocations: 1.158 MB / 422 MB, free: 2.016 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002566/0.3358, allocations: 0.5302 MB / 422.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3359, allocations: 4 kB / 422.5 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001956/0.3378, allocations: 355.8 kB / 422.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.3383, allocations: 52.23 kB / 422.9 MB, free: 1.066 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005949/0.3442, allocations: 3.124 MB / 426.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/0.3447, allocations: 0.7595 MB / 426.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001465/0.3448, allocations: 25.95 kB / 426.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001491/0.345, allocations: 79.41 kB / 426.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.345, allocations: 0 / 426.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03394/0.3789, allocations: 6.365 MB / 433.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.3, allocations: 14.98 kB / 433.3 MB, free: 6.746 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