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.00134/0.001341, 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.001306/0.001306, 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.794/1.794, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001687/0.001687, allocations: 55.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1268, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.009442/0.1364, allocations: 2.699 MB / 377.3 MB, free: 2.379 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003214/0.1397, allocations: 0.7408 MB / 378.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005078/0.1403, allocations: 4 kB / 378.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004369/0.1408, allocations: 47.56 kB / 378.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006264/0.1415, allocations: 79.27 kB / 378.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007332/0.1423, allocations: 107.7 kB / 378.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001127/0.1434, allocations: 382.5 kB / 378.7 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003486/0.1438, allocations: 88.48 kB / 378.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006748/0.1445, allocations: 151.5 kB / 378.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004952/0.145, allocations: 175.3 kB / 379.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.1452, allocations: 32 kB / 379.1 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.1454, allocations: 32 kB / 379.2 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.1456, allocations: 71.73 kB / 379.2 MB, free: 492 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004658/0.146, allocations: 151.3 kB / 379.4 MB, free: 340 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3693/0.5154, allocations: 355.8 kB / 379.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.727e-05/0.5155, allocations: 4.875 kB / 379.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.887e-06/0.5155, allocations: 0 / 379.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.772e-05/0.5155, allocations: 1.969 kB / 379.7 MB, free: 10.01 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.002138/0.5177, allocations: 0.6664 MB / 380.4 MB, free: 9.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.892e-05/0.5178, allocations: 9.812 kB / 380.4 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002723/0.518, allocations: 55.25 kB / 380.5 MB, free: 9.512 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.836e-05/0.5181, allocations: 35.88 kB / 380.5 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005796/0.5187, allocations: 269.4 kB / 380.8 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.5188, allocations: 16.88 kB / 380.8 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-05/0.5189, allocations: 17.02 kB / 380.8 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.52, allocations: 309.6 kB / 381.1 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.52, allocations: 0 / 381.1 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.52, allocations: 9.891 kB / 381.1 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.5201, allocations: 8.422 kB / 381.1 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.5212, allocations: 293.4 kB / 381.4 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002555/0.5237, allocations: 0.9673 MB / 382.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003562/0.5273, allocations: 0.4928 MB / 382.9 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006971/0.528, allocations: 210.2 kB / 383.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.5281, allocations: 4.719 kB / 383.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008195/0.5289, allocations: 243 kB / 383.3 MB, free: 8.629 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.355e-06/0.5289, allocations: 0.5312 kB / 383.3 MB, free: 8.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001772/0.5307, allocations: 464.8 kB / 383.8 MB, free: 8.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.644e-05/0.5308, allocations: 106.7 kB / 383.9 MB, free: 8.445 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003086/0.5311, allocations: 231.5 kB / 384.1 MB, free: 8.344 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.5311, allocations: 30.86 kB / 384.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.5313, allocations: 165.7 kB / 384.3 MB, free: 8.203 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.606e-05/0.5314, allocations: 70.45 kB / 384.3 MB, free: 8.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.5315, allocations: 46.09 kB / 384.4 MB, free: 8.145 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.5317, allocations: 339.5 kB / 384.7 MB, free: 7.828 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006389/0.5323, allocations: 132.9 kB / 384.9 MB, free: 7.828 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006241/0.533, allocations: 184.8 kB / 385 MB, free: 7.785 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.534, allocations: 315 kB / 385.3 MB, free: 7.719 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.534, allocations: 1.031 kB / 385.3 MB, free: 7.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001282/0.5353, allocations: 406.8 kB / 385.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.5355, allocations: 36.58 kB / 385.8 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.182e-05/0.5355, allocations: 1.219 kB / 385.8 MB, free: 7.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.775e-05/0.5356, allocations: 5.438 kB / 385.8 MB, free: 7.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00197/0.5376, allocations: 237.7 kB / 386 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005148/0.5427, allocations: 3.403 MB / 389.4 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004758/0.5432, allocations: 54.41 kB / 389.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.192e-05/0.5433, allocations: 11.42 kB / 389.5 MB, free: 4.555 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.0002338/0.5435, allocations: 145.9 kB / 389.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.891e-05/0.5436, allocations: 23.75 kB / 389.6 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.421e-05/0.5437, allocations: 31.16 kB / 389.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.5437, allocations: 2.844 kB / 389.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.5437, allocations: 6.234 kB / 389.7 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.5437, allocations: 0.9375 kB / 389.7 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.5458, allocations: 0.8983 MB / 390.6 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.5458, allocations: 5.625 kB / 390.6 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00191/0.5477, allocations: 230.2 kB / 390.8 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/0.5478, allocations: 2.594 kB / 390.8 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.028e-05/0.5478, allocations: 3.312 kB / 390.8 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005104/0.5529, allocations: 3.407 MB / 394.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/0.5529, allocations: 1.766 kB / 394.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/0.5548, allocations: 0.5966 MB / 394.8 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.871e-05/0.5549, allocations: 104.3 kB / 394.9 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.07e-05/0.5549, allocations: 12.91 kB / 394.9 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003682/0.5553, allocations: 41.47 kB / 395 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.5555, allocations: 28.91 kB / 395 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.166e-05/0.5556, allocations: 10.75 kB / 395 MB, free: 284 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003236/0.5559, allocations: 165.8 kB / 395.2 MB, free: 180 kB / 318.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5559, allocations: 0 / 395.2 MB, free: 180 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.000651/0.5566, allocations: 81.62 kB / 395.3 MB, free: 164 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.002226/0.5588, allocations: 1.149 MB / 396.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003388/0.5623, allocations: 0.5409 MB / 397 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.5623, allocations: 3.734 kB / 397 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002317/0.5646, allocations: 350.1 kB / 397.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005889/0.5652, allocations: 39.36 kB / 397.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007749/0.573, allocations: 3.125 MB / 400.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006631/0.5737, allocations: 0.7506 MB / 401.2 MB, free: 12.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002139/0.5739, allocations: 24.59 kB / 401.2 MB, free: 12.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.5741, allocations: 83.02 kB / 401.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of SimCode: time 1.963e-06/0.5741, allocations: 0 / 401.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0421/0.6162, allocations: 6.5 MB / 407.8 MB, free: 9.797 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.27, allocations: 6.266 kB / 407.8 MB, free: 9.793 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)