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.002513/0.002518, allocations: 186.3 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.123/2.123, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 98.81 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003792/0.0003794, allocations: 12 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09788/0.09828, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003797/0.1021, allocations: 2.182 MB / 376.8 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.1039, allocations: 0.7221 MB / 377.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.1041, allocations: 4 kB / 377.5 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.856e-05/0.1042, allocations: 31.77 kB / 377.6 MB, free: 12.37 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003118/0.1045, allocations: 91.73 kB / 377.7 MB, free: 12.28 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003761/0.1049, allocations: 75.89 kB / 377.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004503/0.1054, allocations: 239.4 kB / 378 MB, free: 11.97 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.1056, allocations: 69.31 kB / 378 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002693/0.1059, allocations: 123.6 kB / 378.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002958/0.1062, allocations: 151.4 kB / 378.3 MB, free: 11.64 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.219e-05/0.1063, allocations: 16 kB / 378.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.976e-05/0.1064, allocations: 20 kB / 378.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.942e-05/0.1065, allocations: 47.81 kB / 378.4 MB, free: 11.56 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.1066, allocations: 85.5 kB / 378.5 MB, free: 11.47 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003852/0.107, allocations: 255.5 kB / 378.7 MB, free: 11.22 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.107, allocations: 0 / 378.7 MB, free: 11.22 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.107, allocations: 4 kB / 378.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.107, allocations: 0 / 378.7 MB, free: 11.21 MB / 282.7 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.002278/0.1093, allocations: 0.6608 MB / 379.4 MB, free: 10.5 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.1094, allocations: 8.031 kB / 379.4 MB, free: 10.49 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.359e-05/0.1095, allocations: 58.48 kB / 379.5 MB, free: 10.42 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.205e-05/0.1096, allocations: 23.72 kB / 379.5 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/0.11, allocations: 263.6 kB / 379.7 MB, free: 10.1 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.337e-05/0.1101, allocations: 16.44 kB / 379.8 MB, free: 10.08 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.387e-05/0.1102, allocations: 24 kB / 379.8 MB, free: 10.06 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.1114, allocations: 329.7 kB / 380.1 MB, free: 9.723 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1115, allocations: 0 / 380.1 MB, free: 9.723 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.475e-05/0.1115, allocations: 8 kB / 380.1 MB, free: 9.715 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.1116, allocations: 4 kB / 380.1 MB, free: 9.711 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.1133, allocations: 341.5 kB / 380.4 MB, free: 9.379 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002805/0.1161, allocations: 0.9958 MB / 381.4 MB, free: 8.316 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00539/0.1215, allocations: 0.592 MB / 382 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.062e-05/0.1216, allocations: 4 kB / 382 MB, free: 7.711 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.1228, allocations: 262.8 kB / 382.3 MB, free: 7.438 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 2.414e-06/0.1228, allocations: 0 / 382.3 MB, free: 7.438 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.002785/0.1256, allocations: 0.5222 MB / 382.8 MB, free: 6.91 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.331e-05/0.1257, allocations: 85.11 kB / 382.9 MB, free: 6.809 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003567/0.1261, allocations: 225 kB / 383.1 MB, free: 6.578 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.494e-05/0.1261, allocations: 37.64 kB / 383.2 MB, free: 6.535 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.1263, allocations: 214.6 kB / 383.4 MB, free: 6.324 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.1264, allocations: 70.98 kB / 383.4 MB, free: 6.254 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.953e-05/0.1265, allocations: 4 kB / 383.4 MB, free: 6.25 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1267, allocations: 322.8 kB / 383.8 MB, free: 5.926 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000881/0.1275, allocations: 164.4 kB / 383.9 MB, free: 5.766 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009205/0.1285, allocations: 195.4 kB / 384.1 MB, free: 5.566 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009063/0.1294, allocations: 190.6 kB / 384.3 MB, free: 5.375 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.1294, allocations: 0 / 384.3 MB, free: 5.375 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00207/0.1315, allocations: 440.8 kB / 384.7 MB, free: 4.934 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.22e-05/0.1316, allocations: 41.69 kB / 384.8 MB, free: 4.887 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.1316, allocations: 3.953 kB / 384.8 MB, free: 4.883 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.1317, allocations: 0 / 384.8 MB, free: 4.883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003397/0.1351, allocations: 307.7 kB / 385.1 MB, free: 4.582 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007682/0.1428, allocations: 3.259 MB / 388.3 MB, free: 1.055 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006973/0.1435, allocations: 63.88 kB / 388.4 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/0.1436, allocations: 12 kB / 388.4 MB, free: 0.9805 MB / 282.7 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.0002385/0.1438, allocations: 149.6 kB / 388.5 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.257e-05/0.1439, allocations: 23.72 kB / 388.6 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.841e-05/0.144, allocations: 30.17 kB / 388.6 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.144, allocations: 4 kB / 388.6 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.144, allocations: 4 kB / 388.6 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.144, allocations: 0 / 388.6 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005469/0.1446, allocations: 349.3 kB / 388.9 MB, free: 384 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.1446, allocations: 0 / 388.9 MB, free: 384 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003364/0.148, allocations: 303.6 kB / 389.2 MB, free: 80 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.745e-06/0.148, allocations: 4 kB / 389.2 MB, free: 76 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.908e-05/0.1481, allocations: 7.984 kB / 389.3 MB, free: 68 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2626/0.4107, allocations: 3.25 MB / 392.5 MB, free: 18.29 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.4108, allocations: 0 / 392.5 MB, free: 18.29 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002897/0.4137, allocations: 0.5932 MB / 393.1 MB, free: 18.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.848e-05/0.4138, allocations: 100.2 kB / 393.2 MB, free: 18.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.259e-05/0.4139, allocations: 6.75 kB / 393.2 MB, free: 18.14 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000615/0.4145, allocations: 52.22 kB / 393.3 MB, free: 18.14 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.4147, allocations: 31.05 kB / 393.3 MB, free: 18.13 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-05/0.4147, allocations: 6.469 kB / 393.3 MB, free: 18.13 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002451/0.415, allocations: 171.6 kB / 393.5 MB, free: 18.05 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.415, allocations: 0 / 393.5 MB, free: 18.05 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006203/0.4156, allocations: 79.17 kB / 393.5 MB, free: 18.05 MB / 282.7 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.003132/0.4188, allocations: 1.139 MB / 394.7 MB, free: 17.46 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004708/0.4235, allocations: 0.6427 MB / 395.3 MB, free: 17.37 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.4236, allocations: 1.438 kB / 395.3 MB, free: 17.37 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00368/0.4272, allocations: 438.3 kB / 395.7 MB, free: 17.34 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004513/0.4277, allocations: 35.81 kB / 395.8 MB, free: 17.34 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006268/0.434, allocations: 2.11 MB / 397.9 MB, free: 16.21 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/0.4343, allocations: 0.7562 MB / 398.6 MB, free: 15.51 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.4346, allocations: 80.31 kB / 398.7 MB, free: 15.45 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4346, allocations: 2.438 kB / 398.7 MB, free: 15.45 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.766/3.201, allocations: 6.353 MB / 405.1 MB, free: 13.62 MB / 282.7 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)