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.001743/0.001743, allocations: 101.5 kB / 17.72 MB, free: 5.371 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.001961/0.001961, allocations: 192 kB / 18.66 MB, free: 4.445 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.645/1.645, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001495/0.001495, allocations: 55.92 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.115, allocations: 46.61 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004998/0.12, allocations: 2.684 MB / 377.3 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.1221, allocations: 0.7486 MB / 378.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003435/0.1225, allocations: 7.938 kB / 378.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.1228, allocations: 39.62 kB / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003538/0.1231, allocations: 83.2 kB / 378.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004684/0.1236, allocations: 99.8 kB / 378.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006251/0.1242, allocations: 394.5 kB / 378.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.1245, allocations: 84.44 kB / 378.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003553/0.1248, allocations: 155.5 kB / 378.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000293/0.1251, allocations: 167.3 kB / 379.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.559e-05/0.1252, allocations: 36 kB / 379.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.744e-05/0.1253, allocations: 32 kB / 379.2 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.619e-05/0.1254, allocations: 79.67 kB / 379.2 MB, free: 488 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.1256, allocations: 151.3 kB / 379.4 MB, free: 336 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2531/0.3787, allocations: 353.6 kB / 379.7 MB, free: 10.03 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.55e-05/0.3788, allocations: 0.5 kB / 379.7 MB, free: 10.03 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.14e-06/0.3789, allocations: 1.188 kB / 379.7 MB, free: 10.03 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.26e-05/0.3789, allocations: 0 / 379.7 MB, free: 10.03 MB / 318.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.002099/0.381, allocations: 0.6707 MB / 380.4 MB, free: 9.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.3811, allocations: 10.38 kB / 380.4 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.241e-05/0.3812, allocations: 56.28 kB / 380.5 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.174e-05/0.3813, allocations: 31.16 kB / 380.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005519/0.3818, allocations: 265.7 kB / 380.8 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.185e-05/0.3819, allocations: 16.14 kB / 380.8 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.841e-05/0.3819, allocations: 27.02 kB / 380.8 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009337/0.3829, allocations: 307.1 kB / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.3829, allocations: 5.188 kB / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.407e-05/0.3829, allocations: 9.016 kB / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.383, allocations: 8.297 kB / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.3841, allocations: 293.1 kB / 381.4 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.3861, allocations: 0.9663 MB / 382.4 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003265/0.3894, allocations: 0.4891 MB / 382.9 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007661/0.3902, allocations: 209.7 kB / 383.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.721e-05/0.3902, allocations: 6.578 kB / 383.1 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007922/0.391, allocations: 243.1 kB / 383.3 MB, free: 8.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.474e-06/0.391, allocations: 0 / 383.3 MB, free: 8.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001845/0.3929, allocations: 463.2 kB / 383.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.848e-05/0.393, allocations: 111.1 kB / 383.9 MB, free: 8.473 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003253/0.3933, allocations: 227.2 kB / 384.1 MB, free: 8.371 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4e-05/0.3934, allocations: 36.05 kB / 384.1 MB, free: 8.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.3935, allocations: 163 kB / 384.3 MB, free: 8.227 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.179e-05/0.3936, allocations: 67.84 kB / 384.4 MB, free: 8.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/0.3937, allocations: 48.12 kB / 384.4 MB, free: 8.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3939, allocations: 333.8 kB / 384.7 MB, free: 7.855 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000554/0.3944, allocations: 141 kB / 384.9 MB, free: 7.852 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005338/0.395, allocations: 183.5 kB / 385 MB, free: 7.809 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.396, allocations: 314.1 kB / 385.3 MB, free: 7.746 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.396, allocations: 0 / 385.3 MB, free: 7.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001198/0.3972, allocations: 402.9 kB / 385.7 MB, free: 7.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.894e-05/0.3973, allocations: 37.42 kB / 385.8 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.3973, allocations: 0.75 kB / 385.8 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.456e-05/0.3973, allocations: 2.156 kB / 385.8 MB, free: 7.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001745/0.3991, allocations: 243.3 kB / 386 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00486/0.4039, allocations: 3.409 MB / 389.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004563/0.4044, allocations: 56.38 kB / 389.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.165e-05/0.4045, allocations: 6.219 kB / 389.5 MB, free: 4.57 MB / 318.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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,$whenCondition1) * 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001815/0.4047, allocations: 147.4 kB / 389.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.809e-05/0.4047, allocations: 23.41 kB / 389.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.777e-05/0.4048, allocations: 31.44 kB / 389.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.4048, allocations: 2.25 kB / 389.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.4048, allocations: 1.125 kB / 389.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.4048, allocations: 1.219 kB / 389.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.4066, allocations: 0.8988 MB / 390.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.4067, allocations: 0.6094 kB / 390.6 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.4084, allocations: 232.3 kB / 390.8 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.4084, allocations: 1.703 kB / 390.8 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.142e-05/0.4084, allocations: 8.438 kB / 390.8 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00386/0.4123, allocations: 3.411 MB / 394.2 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4123, allocations: 1.781 kB / 394.2 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.4138, allocations: 0.59 MB / 394.8 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.279e-05/0.4139, allocations: 105.1 kB / 394.9 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.097e-05/0.4139, allocations: 12.23 kB / 394.9 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003457/0.4143, allocations: 42.33 kB / 395 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.73e-05/0.4144, allocations: 28.56 kB / 395 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.451e-05/0.4144, allocations: 6.219 kB / 395 MB, free: 296 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001538/0.4146, allocations: 175.4 kB / 395.2 MB, free: 184 kB / 318.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4146, allocations: 0 / 395.2 MB, free: 184 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005177/0.4151, allocations: 77.94 kB / 395.3 MB, free: 172 kB / 318.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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001827/0.4169, allocations: 1.148 MB / 396.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002516/0.4195, allocations: 0.5396 MB / 397 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/0.4195, allocations: 2.188 kB / 397 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.4214, allocations: 354 kB / 397.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004068/0.4218, allocations: 37.75 kB / 397.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005787/0.4276, allocations: 3.119 MB / 400.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.428, allocations: 0.757 MB / 401.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000129/0.4281, allocations: 23.47 kB / 401.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.4283, allocations: 80.81 kB / 401.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4283, allocations: 0 / 401.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0335/0.4618, allocations: 6.511 MB / 407.8 MB, free: 9.809 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.59, allocations: 5.344 kB / 407.8 MB, free: 9.805 MB / 334.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/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)