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.001602/0.001602, allocations: 106.6 kB / 17.06 MB, free: 6.027 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.001911/0.001911, allocations: 195 kB / 17.99 MB, free: 5.109 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.771/1.771, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 51.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6274/0.629, allocations: 49.43 MB / 400.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.008154/0.6373, allocations: 2.731 MB / 403 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002629/0.64, allocations: 0.7011 MB / 403.7 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004764/0.6405, allocations: 11.88 kB / 403.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003299/0.6409, allocations: 43.56 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005226/0.6415, allocations: 83.2 kB / 403.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006193/0.6421, allocations: 107.8 kB / 403.9 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008695/0.643, allocations: 378.6 kB / 404.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003001/0.6433, allocations: 76.7 kB / 404.4 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006424/0.644, allocations: 155.4 kB / 404.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003913/0.6444, allocations: 171.3 kB / 404.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.6445, allocations: 32 kB / 404.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002174/0.6448, allocations: 32 kB / 404.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.6449, allocations: 71.8 kB / 404.8 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002805/0.6452, allocations: 159.2 kB / 405 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006681/0.6459, allocations: 360.5 kB / 405.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.6459, allocations: 0 / 405.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.6459, allocations: 0 / 405.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.6459, allocations: 0 / 405.3 MB, free: 3.75 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.002143/0.6481, allocations: 0.6726 MB / 406 MB, free: 3.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.25e-05/0.6482, allocations: 12.03 kB / 406 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001132/0.6483, allocations: 54.72 kB / 406.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/0.6484, allocations: 32.56 kB / 406.1 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007131/0.6492, allocations: 260.9 kB / 406.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.168e-05/0.6492, allocations: 16.81 kB / 406.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.01e-05/0.6493, allocations: 16.38 kB / 406.4 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.6506, allocations: 313.8 kB / 406.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.6507, allocations: 0 / 406.7 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.139e-05/0.6508, allocations: 15.98 kB / 406.7 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.6508, allocations: 4 kB / 406.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001559/0.6523, allocations: 293.5 kB / 407 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003105/0.6555, allocations: 0.9685 MB / 408 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00486/0.6604, allocations: 0.4903 MB / 408.4 MB, free: 436 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/0.6617, allocations: 208.7 kB / 408.6 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.334e-05/0.6618, allocations: 4 kB / 408.7 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001166/0.663, allocations: 239.2 kB / 408.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.094e-05/0.6631, allocations: 3.984 kB / 408.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.002788/0.6659, allocations: 461.5 kB / 409.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.6661, allocations: 110.8 kB / 409.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000557/0.6666, allocations: 237 kB / 409.7 MB, free: 15.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.404e-05/0.6667, allocations: 33.7 kB / 409.7 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002515/0.667, allocations: 156.2 kB / 409.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.6672, allocations: 74.98 kB / 409.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00021/0.6674, allocations: 41.94 kB / 410 MB, free: 14.81 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003158/0.6677, allocations: 338.8 kB / 410.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000816/0.6686, allocations: 140.3 kB / 410.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008717/0.6695, allocations: 180.9 kB / 410.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001515/0.671, allocations: 312 kB / 410.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/0.671, allocations: 4 kB / 410.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.003949/0.675, allocations: 410.8 kB / 411.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.792e-05/0.6751, allocations: 33.7 kB / 411.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.6751, allocations: 0 / 411.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.59e-05/0.6752, allocations: 4 kB / 411.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001861/0.677, allocations: 239.6 kB / 411.6 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007947/0.685, allocations: 3.388 MB / 415 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007863/0.6859, allocations: 51.83 kB / 415 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.686, allocations: 7.984 kB / 415 MB, free: 9.406 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.0004411/0.6865, allocations: 145.8 kB / 415.2 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/0.6867, allocations: 23.72 kB / 415.2 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001417/0.6868, allocations: 34.17 kB / 415.2 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.6869, allocations: 0 / 415.2 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.6869, allocations: 0 / 415.2 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.6869, allocations: 7.984 kB / 415.3 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00313/0.69, allocations: 0.9036 MB / 416.2 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.6901, allocations: 3.984 kB / 416.2 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00266/0.6928, allocations: 227.8 kB / 416.4 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.661e-05/0.6928, allocations: 0 / 416.4 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.826e-05/0.6929, allocations: 15.98 kB / 416.4 MB, free: 7.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008114/0.701, allocations: 3.404 MB / 419.8 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.7011, allocations: 0 / 419.8 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.703, allocations: 0.5964 MB / 420.4 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002058/0.7032, allocations: 112.8 kB / 420.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.845e-05/0.7033, allocations: 0 / 420.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005497/0.7039, allocations: 39.95 kB / 420.6 MB, free: 3.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.7041, allocations: 27.97 kB / 420.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.632e-05/0.7042, allocations: 7.984 kB / 420.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003508/0.7045, allocations: 176.5 kB / 420.8 MB, free: 3.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7046, allocations: 0 / 420.8 MB, free: 3.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009074/0.7055, allocations: 79.84 kB / 420.8 MB, free: 3.234 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.002453/0.7079, allocations: 1.139 MB / 422 MB, free: 2.059 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003851/0.7118, allocations: 0.5409 MB / 422.5 MB, free: 1.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.7118, allocations: 4 kB / 422.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002932/0.7148, allocations: 351.8 kB / 422.9 MB, free: 1.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009147/0.7157, allocations: 60.25 kB / 422.9 MB, free: 1.102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/0.7261, allocations: 3.12 MB / 426 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006906/0.7268, allocations: 0.748 MB / 426.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002663/0.7271, allocations: 29.92 kB / 426.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.7274, allocations: 79.41 kB / 426.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of SimCode: time 1.413e-06/0.7275, allocations: 0 / 426.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07805/0.8055, allocations: 6.503 MB / 433.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.17/24.98, allocations: 3.438 kB / 433.4 MB, free: 6.664 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest_fmu --startTime=0 --stopTime=0.0002 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1)