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.0008206/0.0008208, allocations: 88.16 kB / 16.31 MB, free: 5.551 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.0009449/0.000945, allocations: 182 kB / 17.21 MB, free: 5.469 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.454/1.454, allocations: 223.3 MB / 241.2 MB, free: 5.336 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003092/0.0003093, allocations: 11.34 kB / 300.9 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1287, allocations: 50.43 MB / 351.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.002968/0.1317, allocations: 2.311 MB / 353.7 MB, free: 9.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.133, allocations: 0.6743 MB / 354.3 MB, free: 8.574 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/0.1332, allocations: 7.938 kB / 354.3 MB, free: 8.566 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.1333, allocations: 31.75 kB / 354.4 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/0.1335, allocations: 71.45 kB / 354.4 MB, free: 8.465 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003092/0.1338, allocations: 71.84 kB / 354.5 MB, free: 8.395 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003769/0.1342, allocations: 334.6 kB / 354.8 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.1344, allocations: 69.17 kB / 354.9 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002127/0.1346, allocations: 131.5 kB / 355 MB, free: 7.867 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001991/0.1348, allocations: 147.4 kB / 355.2 MB, free: 7.723 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.988e-05/0.1349, allocations: 16 kB / 355.2 MB, free: 7.707 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.376e-05/0.1349, allocations: 16 kB / 355.2 MB, free: 7.691 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.054e-05/0.135, allocations: 55.75 kB / 355.3 MB, free: 7.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.429e-05/0.1351, allocations: 73.58 kB / 355.3 MB, free: 7.559 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002527/0.1353, allocations: 263.2 kB / 355.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.83e-06/0.1354, allocations: 0 / 355.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1354, allocations: 0 / 355.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1354, allocations: 0 / 355.6 MB, free: 7.301 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.001395/0.1368, allocations: 0.6647 MB / 356.3 MB, free: 6.582 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1368, allocations: 8.031 kB / 356.3 MB, free: 6.574 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.824e-05/0.1369, allocations: 50.55 kB / 356.3 MB, free: 6.516 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.269e-05/0.137, allocations: 31.62 kB / 356.3 MB, free: 6.484 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003387/0.1373, allocations: 263.4 kB / 356.6 MB, free: 6.184 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.1374, allocations: 20.42 kB / 356.6 MB, free: 6.164 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.663e-05/0.1374, allocations: 24 kB / 356.6 MB, free: 6.141 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007269/0.1381, allocations: 321.7 kB / 357 MB, free: 5.816 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1382, allocations: 0 / 357 MB, free: 5.816 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/0.1382, allocations: 11.95 kB / 357 MB, free: 5.805 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.1382, allocations: 7.938 kB / 357 MB, free: 5.797 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008897/0.1391, allocations: 341.5 kB / 357.3 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.1408, allocations: 0.992 MB / 358.3 MB, free: 4.398 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002777/0.1436, allocations: 0.5959 MB / 358.9 MB, free: 3.793 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006351/0.1442, allocations: 247.6 kB / 359.1 MB, free: 3.551 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.358e-05/0.1443, allocations: 0 / 359.1 MB, free: 3.551 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006793/0.145, allocations: 265.5 kB / 359.4 MB, free: 3.273 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.693e-06/0.145, allocations: 0 / 359.4 MB, free: 3.273 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.00152/0.1465, allocations: 0.5197 MB / 359.9 MB, free: 2.75 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/0.1466, allocations: 110.8 kB / 360 MB, free: 2.617 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002632/0.1469, allocations: 229 kB / 360.2 MB, free: 2.383 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.909e-05/0.1469, allocations: 33.7 kB / 360.3 MB, free: 2.344 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.147, allocations: 164.1 kB / 360.4 MB, free: 2.18 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.524e-05/0.1471, allocations: 71 kB / 360.5 MB, free: 2.109 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.062e-05/0.1472, allocations: 12 kB / 360.5 MB, free: 2.098 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.1473, allocations: 330.8 kB / 360.8 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004658/0.1478, allocations: 160.3 kB / 361 MB, free: 1.605 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004851/0.1483, allocations: 204.2 kB / 361.2 MB, free: 1.395 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004885/0.1488, allocations: 189.6 kB / 361.4 MB, free: 1.203 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.1488, allocations: 4 kB / 361.4 MB, free: 1.199 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00109/0.1499, allocations: 442.8 kB / 361.8 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.079e-05/0.1499, allocations: 33.7 kB / 361.9 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.15, allocations: 0 / 361.9 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.15, allocations: 7.984 kB / 361.9 MB, free: 0.707 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/0.1517, allocations: 303.7 kB / 362.2 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004836/0.1565, allocations: 3.228 MB / 365.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004348/0.157, allocations: 71.86 kB / 365.5 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.877e-05/0.157, allocations: 4 kB / 365.5 MB, free: 12.85 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.0002409/0.1573, allocations: 137.8 kB / 365.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.606e-05/0.1573, allocations: 19.81 kB / 365.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.486e-05/0.1574, allocations: 38.12 kB / 365.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1574, allocations: 4 kB / 365.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1574, allocations: 0 / 365.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.1574, allocations: 7.984 kB / 365.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001787/0.1592, allocations: 0.944 MB / 366.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.1593, allocations: 3.953 kB / 366.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/0.1609, allocations: 303.8 kB / 366.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.1609, allocations: 3.984 kB / 366.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.1609, allocations: 4 kB / 366.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004604/0.1655, allocations: 3.228 MB / 370.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.1656, allocations: 4.062 kB / 370.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.1671, allocations: 0.6607 MB / 370.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.1672, allocations: 108.8 kB / 370.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.085e-05/0.1673, allocations: 3.938 kB / 370.9 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003445/0.1676, allocations: 56.02 kB / 371 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.1678, allocations: 35.91 kB / 371 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.1678, allocations: 4 kB / 371 MB, free: 6.922 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001925/0.168, allocations: 168.5 kB / 371.2 MB, free: 6.762 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.168, allocations: 3.938 kB / 371.2 MB, free: 6.758 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005269/0.1685, allocations: 83.84 kB / 371.3 MB, free: 6.676 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.001998/0.1705, allocations: 1.206 MB / 372.5 MB, free: 5.434 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002624/0.1732, allocations: 0.6492 MB / 373.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1732, allocations: 3.938 kB / 373.1 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001886/0.1751, allocations: 443.8 kB / 373.6 MB, free: 4.336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004648/0.1756, allocations: 40.41 kB / 373.6 MB, free: 4.297 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004559/0.1801, allocations: 1.975 MB / 375.6 MB, free: 2.262 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005481/0.1807, allocations: 0.7557 MB / 376.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000174/0.1809, allocations: 33.88 kB / 376.4 MB, free: 1.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.1811, allocations: 79.41 kB / 376.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of SimCode: time 1.263e-06/0.1811, allocations: 0 / 376.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02097/0.202, allocations: 5.622 MB / 382.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/0.2023, allocations: 225.2 kB / 382.3 MB, free: 11.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.173/2.375, allocations: 0 / 382.3 MB, free: 11.73 MB / 318.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/linux/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)