Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002287/0.002286, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.276/2.276, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001108, allocations: 93.8 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.374e-05/2.382e-05, allocations: 4 kB / 314.9 MB, free: 9.078 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3484, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1345/0.4829, allocations: 78.56 MB / 441 MB, free: 7.684 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00029/0.4833, allocations: 71.95 kB / 441.1 MB, free: 7.613 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02503/0.5083, allocations: 4.728 MB / 445.8 MB, free: 2.914 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5084, allocations: 0 / 445.8 MB, free: 2.914 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.566e-05/0.5084, allocations: 8 kB / 445.8 MB, free: 2.906 MB / 331.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.002082/0.5105, allocations: 0.6023 MB / 446.4 MB, free: 2.254 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.254e-05/0.5106, allocations: 12.03 kB / 446.4 MB, free: 2.242 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001807/0.5108, allocations: 43.59 kB / 446.4 MB, free: 2.199 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005895/0.5114, allocations: 255.5 kB / 446.7 MB, free: 1.906 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.5115, allocations: 7.953 kB / 446.7 MB, free: 1.898 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.349e-05/0.5116, allocations: 12 kB / 446.7 MB, free: 1.887 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005667/0.5121, allocations: 169.4 kB / 446.9 MB, free: 1.723 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006042/0.5128, allocations: 216.9 kB / 447.1 MB, free: 1.496 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.5128, allocations: 0 / 447.1 MB, free: 1.496 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.618e-05/0.5129, allocations: 0 / 447.1 MB, free: 1.496 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.5129, allocations: 7.938 kB / 447.1 MB, free: 1.488 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003456/0.5163, allocations: 0.9708 MB / 448.1 MB, free: 476 kB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005027/0.5214, allocations: 469.3 kB / 448.5 MB, free: 0 / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006421/0.5221, allocations: 148.9 kB / 448.7 MB, free: 15.85 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.645e-05/0.5222, allocations: 3.906 kB / 448.7 MB, free: 15.85 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004767/0.5227, allocations: 171.5 kB / 448.8 MB, free: 15.66 MB / 347.1 MB Notification: Performance of pre-optimization done (n=21): time 2.876e-06/0.5227, allocations: 0 / 448.8 MB, free: 15.66 MB / 347.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007435/0.5235, allocations: 204.8 kB / 449 MB, free: 15.45 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.19e-05/0.5236, allocations: 114.8 kB / 449.2 MB, free: 15.32 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.5239, allocations: 195.9 kB / 449.3 MB, free: 15.12 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.066e-05/0.524, allocations: 25.7 kB / 449.4 MB, free: 15.09 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.5242, allocations: 218.7 kB / 449.6 MB, free: 14.88 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.555e-05/0.5243, allocations: 67 kB / 449.7 MB, free: 14.81 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.619e-05/0.5243, allocations: 4 kB / 449.7 MB, free: 14.8 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.5245, allocations: 317 kB / 450 MB, free: 14.49 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.5247, allocations: 76.45 kB / 450 MB, free: 14.41 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000274/0.525, allocations: 117 kB / 450.2 MB, free: 14.29 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.5253, allocations: 76.56 kB / 450.2 MB, free: 14.21 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.5253, allocations: 0 / 450.2 MB, free: 14.21 MB / 347.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007125/0.526, allocations: 220.4 kB / 450.4 MB, free: 13.99 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.577e-05/0.5261, allocations: 37.7 kB / 450.5 MB, free: 13.95 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.5261, allocations: 0.8594 kB / 450.5 MB, free: 13.95 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.5262, allocations: 0 / 450.5 MB, free: 13.95 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004484/0.5307, allocations: 335.7 kB / 450.8 MB, free: 13.62 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007567/0.5383, allocations: 2.968 MB / 453.8 MB, free: 10.43 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008485/0.5392, allocations: 55.8 kB / 453.8 MB, free: 10.38 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.781e-05/0.5393, allocations: 8.094 kB / 453.8 MB, free: 10.37 MB / 347.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 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete 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 (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001831/0.5395, allocations: 112.9 kB / 453.9 MB, free: 10.25 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006164/0.5401, allocations: 201.3 kB / 454.1 MB, free: 10.05 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.041e-05/0.5402, allocations: 23.72 kB / 454.2 MB, free: 10.03 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.5403, allocations: 21.97 kB / 454.2 MB, free: 10.01 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.5403, allocations: 7.984 kB / 454.2 MB, free: 10 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.5403, allocations: 3.953 kB / 454.2 MB, free: 9.996 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.5404, allocations: 0 / 454.2 MB, free: 9.996 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001963/0.5423, allocations: 0.7349 MB / 454.9 MB, free: 9.211 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.5424, allocations: 4.062 kB / 454.9 MB, free: 9.207 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004399/0.5468, allocations: 327.7 kB / 455.3 MB, free: 8.887 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.174e-05/0.5468, allocations: 0 / 455.3 MB, free: 8.887 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.582e-05/0.5469, allocations: 4 kB / 455.3 MB, free: 8.883 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007195/0.5541, allocations: 2.963 MB / 458.2 MB, free: 5.695 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.5542, allocations: 1.484 kB / 458.2 MB, free: 5.695 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.5553, allocations: 443 kB / 458.7 MB, free: 5.23 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.5555, allocations: 100.8 kB / 458.8 MB, free: 5.113 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.634e-05/0.5556, allocations: 7.984 kB / 458.8 MB, free: 5.105 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007467/0.5564, allocations: 55.95 kB / 458.8 MB, free: 5.051 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.5566, allocations: 34.39 kB / 458.9 MB, free: 5.02 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.215e-05/0.5566, allocations: 7.953 kB / 458.9 MB, free: 5.012 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002486/0.5569, allocations: 156.5 kB / 459 MB, free: 4.863 MB / 347.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5569, allocations: 0 / 459 MB, free: 4.863 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007697/0.5577, allocations: 75.84 kB / 459.1 MB, free: 4.789 MB / 347.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) * 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 (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001613/0.5593, allocations: 1.119 MB / 460.2 MB, free: 3.629 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.004212/0.5636, allocations: 471.1 kB / 460.7 MB, free: 3.156 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.5636, allocations: 0 / 460.7 MB, free: 3.156 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003893/0.5675, allocations: 339.9 kB / 461 MB, free: 2.824 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005671/0.5682, allocations: 24.92 kB / 461 MB, free: 2.801 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002833/0.571, allocations: 0.5423 MB / 461.6 MB, free: 2.215 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000426/0.5715, allocations: 0.7593 MB / 462.3 MB, free: 1.43 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002678/0.5718, allocations: 79.41 kB / 462.4 MB, free: 1.352 MB / 347.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5718, allocations: 0 / 462.4 MB, free: 1.352 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.776/3.347, allocations: 6.157 MB / 468.6 MB, free: 11.23 MB / 363.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest_fmu --startTime=0 --stopTime=0.0002 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1)