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.001333/0.001333, allocations: 97.89 kB / 16.31 MB, free: 5.996 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.001578/0.001578, allocations: 184.5 kB / 17.2 MB, free: 5.914 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.476/1.476, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002756/0.0002756, allocations: 9.656 kB / 300.8 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1112, allocations: 50.43 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.002727/0.1139, allocations: 2.214 MB / 353.5 MB, free: 9.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.1151, allocations: 0.6861 MB / 354.1 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.1153, allocations: 4 kB / 354.1 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.195e-05/0.1153, allocations: 31.75 kB / 354.2 MB, free: 8.699 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002193/0.1155, allocations: 95.73 kB / 354.3 MB, free: 8.605 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.1158, allocations: 75.83 kB / 354.3 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.1162, allocations: 235.5 kB / 354.6 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.1163, allocations: 69.17 kB / 354.6 MB, free: 8.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000264/0.1166, allocations: 127.6 kB / 354.8 MB, free: 8.105 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.1169, allocations: 151.4 kB / 354.9 MB, free: 7.957 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.114e-05/0.1169, allocations: 16 kB / 354.9 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.047e-05/0.117, allocations: 20 kB / 354.9 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.382e-05/0.117, allocations: 47.8 kB / 355 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.421e-05/0.1171, allocations: 77.58 kB / 355.1 MB, free: 7.793 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.1174, allocations: 255.2 kB / 355.3 MB, free: 7.543 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1174, allocations: 0 / 355.3 MB, free: 7.543 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1174, allocations: 4 kB / 355.3 MB, free: 7.539 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.1174, allocations: 0 / 355.3 MB, free: 7.539 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.001503/0.1189, allocations: 0.6608 MB / 356 MB, free: 6.824 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.119, allocations: 8.031 kB / 356 MB, free: 6.816 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.91e-05/0.1191, allocations: 58.53 kB / 356 MB, free: 6.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.788e-05/0.1191, allocations: 27.62 kB / 356.1 MB, free: 6.723 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003259/0.1195, allocations: 263.4 kB / 356.3 MB, free: 6.422 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.1195, allocations: 12.44 kB / 356.3 MB, free: 6.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.712e-05/0.1196, allocations: 24 kB / 356.4 MB, free: 6.387 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007721/0.1203, allocations: 325.7 kB / 356.7 MB, free: 6.059 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1204, allocations: 0 / 356.7 MB, free: 6.059 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.1204, allocations: 11.95 kB / 356.7 MB, free: 6.047 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.1204, allocations: 4 kB / 356.7 MB, free: 6.043 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009814/0.1214, allocations: 353.3 kB / 357 MB, free: 5.695 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.1232, allocations: 0.9882 MB / 358 MB, free: 4.637 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002873/0.1261, allocations: 0.5959 MB / 358.6 MB, free: 4.031 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.93e-05/0.1262, allocations: 7.984 kB / 358.6 MB, free: 4.023 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007292/0.1269, allocations: 256.1 kB / 358.9 MB, free: 3.758 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 2.415e-06/0.1269, allocations: 0 / 358.9 MB, free: 3.758 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001595/0.1285, allocations: 0.5281 MB / 359.4 MB, free: 3.227 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.1286, allocations: 81.11 kB / 359.5 MB, free: 3.129 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.1288, allocations: 229 kB / 359.7 MB, free: 2.895 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.052e-05/0.1289, allocations: 33.7 kB / 359.7 MB, free: 2.855 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.129, allocations: 156.2 kB / 359.9 MB, free: 2.699 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.923e-05/0.1291, allocations: 70.98 kB / 360 MB, free: 2.629 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.136e-05/0.1291, allocations: 8 kB / 360 MB, free: 2.621 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1292, allocations: 339.1 kB / 360.3 MB, free: 2.281 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004818/0.1297, allocations: 168.3 kB / 360.5 MB, free: 2.113 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004889/0.1302, allocations: 191.4 kB / 360.7 MB, free: 1.918 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005257/0.1308, allocations: 190.6 kB / 360.8 MB, free: 1.727 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.1308, allocations: 3.938 kB / 360.9 MB, free: 1.723 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001155/0.1319, allocations: 460.5 kB / 361.3 MB, free: 1.262 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.272e-05/0.132, allocations: 29.7 kB / 361.3 MB, free: 1.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.132, allocations: 0 / 361.3 MB, free: 1.227 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.132, allocations: 4 kB / 361.3 MB, free: 1.223 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/0.1338, allocations: 307.7 kB / 361.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004471/0.1383, allocations: 3.259 MB / 364.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004525/0.1388, allocations: 67.77 kB / 365 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.1388, allocations: 4 kB / 365 MB, free: 13.33 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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.0001769/0.139, allocations: 141.8 kB / 365.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.063e-05/0.139, allocations: 19.81 kB / 365.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.016e-05/0.1391, allocations: 30.19 kB / 365.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1391, allocations: 0 / 365.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1391, allocations: 7.953 kB / 365.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1391, allocations: 7.969 kB / 365.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003301/0.1395, allocations: 345.3 kB / 365.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1395, allocations: 0 / 365.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/0.1412, allocations: 303.6 kB / 365.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.1412, allocations: 8 kB / 365.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.237e-05/0.1413, allocations: 4 kB / 365.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004172/0.1455, allocations: 3.259 MB / 369.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1455, allocations: 0 / 369.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.147, allocations: 0.5851 MB / 369.7 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.834e-05/0.1471, allocations: 108.7 kB / 369.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.502e-05/0.1472, allocations: 4 kB / 369.8 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003388/0.1475, allocations: 55.95 kB / 369.8 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.388e-05/0.1476, allocations: 27.95 kB / 369.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.1477, allocations: 12 kB / 369.9 MB, free: 8.078 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001428/0.1478, allocations: 168.5 kB / 370 MB, free: 7.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1478, allocations: 0 / 370 MB, free: 7.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004367/0.1483, allocations: 75.91 kB / 370.1 MB, free: 7.844 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.001837/0.1501, allocations: 1.143 MB / 371.2 MB, free: 6.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002589/0.1527, allocations: 0.6512 MB / 371.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.1527, allocations: 0 / 371.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001998/0.1547, allocations: 432.7 kB / 372.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.1551, allocations: 48.27 kB / 372.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004616/0.1597, allocations: 2.062 MB / 374.4 MB, free: 3.418 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/0.1602, allocations: 0.7637 MB / 375.2 MB, free: 2.625 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002447/0.1605, allocations: 21.95 kB / 375.2 MB, free: 2.605 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/0.1607, allocations: 79.41 kB / 375.3 MB, free: 2.527 MB / 302.1 MB Notification: Performance of SimCode: time 2.715e-06/0.1607, allocations: 0 / 375.3 MB, free: 2.527 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02627/0.187, allocations: 5.54 MB / 380.8 MB, free: 13.21 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003157/0.1873, allocations: 217.9 kB / 381 MB, free: 12.97 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.087/2.274, allocations: 4.062 kB / 381 MB, free: 12.96 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)