Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_3_2_3_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.000983/0.0009822, allocations: 91.94 kB / 16.95 MB, free: 6.441 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: 181.2 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.988/1.988, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009975/0.0009977, allocations: 12 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1352, allocations: 47.58 MB / 328.5 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004411/0.1398, allocations: 2.287 MB / 330.7 MB, free: 1.684 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00234/0.1422, allocations: 0.7102 MB / 331.4 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003817/0.1426, allocations: 4 kB / 331.5 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002261/0.1429, allocations: 31.75 kB / 331.5 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003468/0.1432, allocations: 75.39 kB / 331.6 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004163/0.1437, allocations: 71.84 kB / 331.6 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005715/0.1442, allocations: 342.6 kB / 332 MB, free: 460 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002788/0.1445, allocations: 61.33 kB / 332 MB, free: 404 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000402/0.145, allocations: 127.5 kB / 332.1 MB, free: 276 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003377/0.1453, allocations: 147.4 kB / 332.3 MB, free: 128 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.239e-05/0.1454, allocations: 16 kB / 332.3 MB, free: 112 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.288e-05/0.1455, allocations: 20 kB / 332.3 MB, free: 92 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.826e-05/0.1456, allocations: 51.75 kB / 332.4 MB, free: 40 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.1457, allocations: 69.58 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.1461, allocations: 267.5 kB / 332.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.1461, allocations: 0 / 332.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.1461, allocations: 4 kB / 332.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.1461, allocations: 0 / 332.7 MB, free: 15.7 MB / 286.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.001958/0.1481, allocations: 0.6608 MB / 333.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.37e-05/0.1482, allocations: 8.031 kB / 333.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000123/0.1483, allocations: 54.55 kB / 333.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.1484, allocations: 27.72 kB / 333.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004324/0.1488, allocations: 259.6 kB / 333.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.1489, allocations: 20.44 kB / 333.7 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.69e-05/0.149, allocations: 19.94 kB / 333.7 MB, free: 14.55 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008631/0.1498, allocations: 333.7 kB / 334.1 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.1499, allocations: 0 / 334.1 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.457e-05/0.1499, allocations: 11.94 kB / 334.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.1499, allocations: 8 kB / 334.1 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00096/0.1509, allocations: 333.5 kB / 334.4 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.1528, allocations: 0.9959 MB / 335.4 MB, free: 12.8 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002837/0.1557, allocations: 0.5998 MB / 336 MB, free: 12.19 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006692/0.1564, allocations: 240.7 kB / 336.3 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.264e-05/0.1565, allocations: 4.344 kB / 336.3 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006828/0.1572, allocations: 267.2 kB / 336.5 MB, free: 11.67 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 2.485e-06/0.1572, allocations: 0 / 336.5 MB, free: 11.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001596/0.1588, allocations: 0.5167 MB / 337 MB, free: 11.14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.1589, allocations: 106.8 kB / 337.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.1593, allocations: 233 kB / 337.4 MB, free: 10.78 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/0.1594, allocations: 29.7 kB / 337.4 MB, free: 10.74 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.1595, allocations: 164.2 kB / 337.6 MB, free: 10.58 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.1597, allocations: 63.02 kB / 337.6 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.6e-05/0.1597, allocations: 7.938 kB / 337.6 MB, free: 10.51 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.1599, allocations: 342.8 kB / 338 MB, free: 10.16 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000463/0.1603, allocations: 160.4 kB / 338.1 MB, free: 10.01 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004779/0.1608, allocations: 196.2 kB / 338.3 MB, free: 9.805 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005002/0.1613, allocations: 189.6 kB / 338.5 MB, free: 9.613 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/0.1614, allocations: 0 / 338.5 MB, free: 9.613 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001182/0.1626, allocations: 454.7 kB / 338.9 MB, free: 9.156 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.849e-05/0.1626, allocations: 29.7 kB / 339 MB, free: 9.121 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/0.1626, allocations: 7.984 kB / 339 MB, free: 9.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.1627, allocations: 0 / 339 MB, free: 9.113 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/0.1644, allocations: 315.7 kB / 339.3 MB, free: 8.805 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004882/0.1693, allocations: 3.224 MB / 342.5 MB, free: 5.312 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004659/0.1698, allocations: 71.77 kB / 342.6 MB, free: 5.242 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.516e-05/0.1698, allocations: 12 kB / 342.6 MB, free: 5.23 MB / 286.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.0002574/0.1701, allocations: 137.7 kB / 342.7 MB, free: 5.086 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.984e-05/0.1702, allocations: 31.7 kB / 342.8 MB, free: 5.055 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.245e-05/0.1703, allocations: 22.19 kB / 342.8 MB, free: 5.035 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1703, allocations: 4 kB / 342.8 MB, free: 5.031 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.1703, allocations: 0 / 342.8 MB, free: 5.031 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.1703, allocations: 3.984 kB / 342.8 MB, free: 5.027 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.1724, allocations: 0.948 MB / 343.7 MB, free: 4.016 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.1724, allocations: 0 / 343.7 MB, free: 4.016 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/0.1742, allocations: 307.7 kB / 344 MB, free: 3.715 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.524e-05/0.1742, allocations: 4 kB / 344 MB, free: 3.711 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.16e-05/0.1742, allocations: 4 kB / 344 MB, free: 3.707 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004928/0.1792, allocations: 3.232 MB / 347.3 MB, free: 220 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.1792, allocations: 4.031 kB / 347.3 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.1808, allocations: 0.6588 MB / 347.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.181, allocations: 104.8 kB / 348 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.249e-05/0.1811, allocations: 8 kB / 348 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003615/0.1814, allocations: 52.02 kB / 348.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.1816, allocations: 27.95 kB / 348.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.1816, allocations: 7.938 kB / 348.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002486/0.1819, allocations: 176.4 kB / 348.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1819, allocations: 0 / 348.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006569/0.1826, allocations: 79.84 kB / 348.4 MB, free: 15.06 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.002188/0.1848, allocations: 1.221 MB / 349.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00262/0.1874, allocations: 0.6357 MB / 350.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.1874, allocations: 0 / 350.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001959/0.1894, allocations: 440.7 kB / 350.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005696/0.19, allocations: 56.3 kB / 350.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004826/0.1948, allocations: 1.975 MB / 352.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.1954, allocations: 0.7518 MB / 353.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002209/0.1957, allocations: 25.94 kB / 353.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002345/0.1959, allocations: 79.41 kB / 353.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of SimCode: time 2.264e-06/0.1959, allocations: 0 / 353.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.029/0.2249, allocations: 5.63 MB / 359.2 MB, free: 4.137 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003259/0.2254, allocations: 226.6 kB / 359.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.232/2.457, allocations: 0 / 359.4 MB, free: 3.895 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest_fmu --startTime=0 --stopTime=0.0002 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) Environment - environmentSimulation: