Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001004/0.001004, allocations: 98.34 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 193 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002575/0.0002577, allocations: 8 kB / 306.8 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.132, allocations: 51.49 MB / 358.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.00381/0.1359, allocations: 2.35 MB / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.1374, allocations: 0.6938 MB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.1375, allocations: 4 kB / 361.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.1377, allocations: 27.77 kB / 361.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001874/0.1379, allocations: 71.39 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000594/0.1385, allocations: 79.83 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004136/0.1389, allocations: 342.5 kB / 361.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002751/0.1392, allocations: 65.31 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003429/0.1396, allocations: 131.5 kB / 362 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003529/0.1399, allocations: 147.4 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.276e-05/0.14, allocations: 20 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.069e-05/0.1401, allocations: 20 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.165e-05/0.1402, allocations: 59.73 kB / 362.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.1403, allocations: 73.58 kB / 362.4 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000381/0.1407, allocations: 263.5 kB / 362.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.115e-05/0.1407, allocations: 0 / 362.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.1407, allocations: 0 / 362.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.657e-06/0.1408, allocations: 4 kB / 362.6 MB, free: 9.652 MB / 302.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.001745/0.1425, allocations: 0.6635 MB / 363.3 MB, free: 8.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.1426, allocations: 12.03 kB / 363.3 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.008e-05/0.1427, allocations: 54.55 kB / 363.4 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001902/0.1429, allocations: 39.7 kB / 363.4 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004496/0.1433, allocations: 255.6 kB / 363.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/0.1434, allocations: 20.39 kB / 363.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.102e-05/0.1434, allocations: 24 kB / 363.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007809/0.1442, allocations: 329.7 kB / 364 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.1442, allocations: 0 / 364 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.1443, allocations: 8 kB / 364 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.1443, allocations: 4 kB / 364 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009245/0.1452, allocations: 333.5 kB / 364.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001983/0.1472, allocations: 0.9959 MB / 365.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002892/0.1501, allocations: 0.5959 MB / 365.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006639/0.1508, allocations: 244.5 kB / 366.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.786e-05/0.1508, allocations: 3.984 kB / 366.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007401/0.1516, allocations: 271.5 kB / 366.4 MB, free: 5.617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.534e-06/0.1516, allocations: 0 / 366.4 MB, free: 5.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001628/0.1532, allocations: 0.5167 MB / 367 MB, free: 5.094 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.697e-05/0.1533, allocations: 106.8 kB / 367.1 MB, free: 4.965 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004144/0.1538, allocations: 233 kB / 367.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.1538, allocations: 33.7 kB / 367.3 MB, free: 4.688 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002148/0.154, allocations: 156.2 kB / 367.5 MB, free: 4.531 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.178e-05/0.1541, allocations: 74.94 kB / 367.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.952e-05/0.1541, allocations: 7.938 kB / 367.6 MB, free: 4.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003832/0.1545, allocations: 334.8 kB / 367.9 MB, free: 4.113 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004724/0.155, allocations: 160.4 kB / 368 MB, free: 3.953 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005144/0.1555, allocations: 196.2 kB / 368.2 MB, free: 3.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005157/0.1561, allocations: 187.3 kB / 368.4 MB, free: 3.562 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.1561, allocations: 4 kB / 368.4 MB, free: 3.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001272/0.1574, allocations: 446.8 kB / 368.9 MB, free: 3.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.884e-05/0.1574, allocations: 45.66 kB / 368.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/0.1575, allocations: 0 / 368.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.1575, allocations: 4 kB / 368.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/0.1592, allocations: 303.7 kB / 369.2 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2851/0.4443, allocations: 3.212 MB / 372.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007349/0.4451, allocations: 68.08 kB / 372.5 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.668e-05/0.4452, allocations: 10.23 kB / 372.5 MB, free: 18.64 MB / 302.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 () * 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 (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.0002956/0.4455, allocations: 142.1 kB / 372.6 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.48e-05/0.4456, allocations: 21.88 kB / 372.6 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.4457, allocations: 33.77 kB / 372.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.4457, allocations: 6.219 kB / 372.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.4457, allocations: 0.5 kB / 372.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.4457, allocations: 1.719 kB / 372.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002388/0.4481, allocations: 0.9515 MB / 373.6 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.4482, allocations: 4.969 kB / 373.6 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001788/0.45, allocations: 302.7 kB / 373.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.45, allocations: 5.656 kB / 373.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.45, allocations: 7.047 kB / 374 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004005/0.454, allocations: 3.229 MB / 377.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.454, allocations: 2.688 kB / 377.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.4558, allocations: 0.6638 MB / 377.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.302e-05/0.4559, allocations: 107 kB / 378 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.877e-05/0.4559, allocations: 4.266 kB / 378 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003652/0.4563, allocations: 51.14 kB / 378 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.4564, allocations: 31.8 kB / 378 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.4565, allocations: 6.547 kB / 378 MB, free: 15.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002489/0.4567, allocations: 168.6 kB / 378.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4567, allocations: 0 / 378.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005533/0.4573, allocations: 77.22 kB / 378.3 MB, free: 15.09 MB / 302.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 (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.001897/0.4592, allocations: 1.213 MB / 379.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00246/0.4617, allocations: 0.6401 MB / 380.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.4617, allocations: 4.875 kB / 380.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001958/0.4637, allocations: 447.2 kB / 380.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004742/0.4641, allocations: 43.19 kB / 380.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004221/0.4684, allocations: 1.986 MB / 382.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002294/0.4686, allocations: 0.7532 MB / 383.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001621/0.4688, allocations: 21.95 kB / 383.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.4689, allocations: 78.5 kB / 383.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4689, allocations: 0.75 kB / 383.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03855/0.5075, allocations: 5.623 MB / 389.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002184/0.5078, allocations: 231 kB / 389.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.112/2.62, allocations: 0 / 389.3 MB, free: 11.2 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest_fmu --startTime=0 --stopTime=0.0002 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1)