Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008884/0.0008884, allocations: 92.22 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.553e-05/1.542e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1101, allocations: 50.43 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3609/0.4711, allocations: 82.3 MB / 469.9 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002007/0.4713, allocations: 71.97 kB / 469.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02614/0.4975, allocations: 9.189 MB / 479.1 MB, free: 3.102 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.949e-06/0.4975, allocations: 0 / 479.1 MB, free: 3.102 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.458e-05/0.4975, allocations: 15.94 kB / 479.1 MB, free: 3.086 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001906/0.4995, allocations: 0.8756 MB / 480 MB, free: 2.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.4995, allocations: 8.031 kB / 480 MB, free: 2.152 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/0.4996, allocations: 59.34 kB / 480.1 MB, free: 2.094 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004964/0.5001, allocations: 407.1 kB / 480.5 MB, free: 1.652 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.5002, allocations: 12 kB / 480.5 MB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.504e-05/0.5002, allocations: 20 kB / 480.5 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006712/0.5009, allocations: 393.5 kB / 480.9 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006787/0.5016, allocations: 424.7 kB / 481.3 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.5016, allocations: 0 / 481.3 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.525e-05/0.5017, allocations: 4 kB / 481.3 MB, free: 0.793 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.5017, allocations: 11.98 kB / 481.3 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003581/0.5053, allocations: 2.112 MB / 483.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003068/0.5084, allocations: 0.7198 MB / 484.2 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003995/0.5088, allocations: 253.9 kB / 484.4 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-05/0.5088, allocations: 8.312 kB / 484.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004963/0.5093, allocations: 304.2 kB / 484.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.394e-06/0.5094, allocations: 3.938 kB / 484.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001184/0.5105, allocations: 0.5251 MB / 485.2 MB, free: 12.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.5106, allocations: 81.11 kB / 485.3 MB, free: 12.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003986/0.511, allocations: 333.2 kB / 485.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.851e-05/0.5111, allocations: 29.7 kB / 485.7 MB, free: 12.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.5113, allocations: 232.6 kB / 485.9 MB, free: 12.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.5114, allocations: 130 kB / 486 MB, free: 11.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.057e-05/0.5115, allocations: 0 / 486 MB, free: 11.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.5116, allocations: 350.8 kB / 486.4 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002701/0.5119, allocations: 164.8 kB / 486.5 MB, free: 11.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003055/0.5122, allocations: 201.9 kB / 486.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002722/0.5125, allocations: 161.9 kB / 486.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.5125, allocations: 0 / 486.9 MB, free: 11.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001032/0.5136, allocations: 0.545 MB / 487.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.332e-05/0.5136, allocations: 37.7 kB / 487.5 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.5136, allocations: 0 / 487.5 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008952/0.5145, allocations: 340.5 kB / 487.8 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000507/0.515, allocations: 107.9 kB / 487.9 MB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006403/0.5215, allocations: 2.994 MB / 490.9 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007086/0.5222, allocations: 107.6 kB / 491 MB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.888e-05/0.5222, allocations: 12 kB / 491 MB, free: 6.77 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE(unit = "V" ) "Voltage between gate and cathode" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001839/0.5224, allocations: 116.9 kB / 491.1 MB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001047/0.5235, allocations: 0.537 MB / 491.7 MB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.036e-05/0.5236, allocations: 47.52 kB / 491.7 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001335/0.5237, allocations: 52.75 kB / 491.8 MB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.5237, allocations: 4 kB / 491.8 MB, free: 6 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.5237, allocations: 96 / 491.8 MB, free: 6 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.5237, allocations: 3.984 kB / 491.8 MB, free: 5.996 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005946/0.5243, allocations: 0.5564 MB / 492.3 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.5243, allocations: 0 / 492.3 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005063/0.5249, allocations: 99.92 kB / 492.4 MB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007705/0.5256, allocations: 332.5 kB / 492.7 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.652e-05/0.5257, allocations: 0 / 492.7 MB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006228/0.5319, allocations: 2.996 MB / 495.7 MB, free: 1.867 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5319, allocations: 0 / 495.7 MB, free: 1.867 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/0.5334, allocations: 0.8371 MB / 496.6 MB, free: 1.008 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000214/0.5336, allocations: 176.5 kB / 496.8 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.454e-05/0.5337, allocations: 12 kB / 496.8 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006434/0.5344, allocations: 87.91 kB / 496.9 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.5345, allocations: 47.92 kB / 496.9 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.5345, allocations: 12 kB / 496.9 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002597/0.5348, allocations: 259 kB / 497.2 MB, free: 420 kB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5348, allocations: 3.938 kB / 497.2 MB, free: 416 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005957/0.5354, allocations: 163.7 kB / 497.3 MB, free: 252 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00174/0.5372, allocations: 1.386 MB / 498.7 MB, free: 14.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.5385, allocations: 0.6415 MB / 499.4 MB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.5385, allocations: 0 / 499.4 MB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008345/0.5394, allocations: 425.5 kB / 499.8 MB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.5397, allocations: 66.09 kB / 499.8 MB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002528/0.5423, allocations: 0.9494 MB / 0.489 GB, free: 12.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.5427, allocations: 0.8473 MB / 0.4899 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002256/0.5429, allocations: 43.27 kB / 0.4899 GB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002188/0.5431, allocations: 151.4 kB / 0.4901 GB, free: 11.62 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5431, allocations: 0 / 0.4901 GB, free: 11.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03434/0.5775, allocations: 13.61 MB / 0.5034 GB, free: 14.11 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002033/0.5777, allocations: 147.1 kB / 0.5035 GB, free: 13.91 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.319/2.897, allocations: 0 / 0.5035 GB, free: 13.91 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)