Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",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.002293/0.002299, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.08/2.08, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001117, allocations: 92.42 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.932e-05/2.938e-05, allocations: 4 kB / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3759, allocations: 47.56 MB / 362.4 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1308/0.5068, allocations: 79.67 MB / 442.1 MB, free: 6.621 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.5071, allocations: 69.64 kB / 442.2 MB, free: 6.555 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04275/0.5499, allocations: 8.481 MB / 450.7 MB, free: 14.09 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.55, allocations: 1.312 kB / 450.7 MB, free: 14.09 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.571e-05/0.55, allocations: 8 kB / 450.7 MB, free: 14.08 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003383/0.5534, allocations: 0.8389 MB / 451.5 MB, free: 13.2 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.5535, allocations: 12.03 kB / 451.5 MB, free: 13.18 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002922/0.5538, allocations: 55.34 kB / 451.6 MB, free: 13.13 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008611/0.5547, allocations: 379.8 kB / 451.9 MB, free: 12.71 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.319e-05/0.5547, allocations: 15.95 kB / 452 MB, free: 12.7 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.5549, allocations: 24 kB / 452 MB, free: 12.68 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00116/0.556, allocations: 365.5 kB / 452.3 MB, free: 12.32 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.5572, allocations: 414 kB / 452.7 MB, free: 11.89 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.5573, allocations: 3.938 kB / 452.7 MB, free: 11.89 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-05/0.5573, allocations: 0 / 452.7 MB, free: 11.89 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.585e-05/0.5574, allocations: 12 kB / 452.8 MB, free: 11.88 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007065/0.5645, allocations: 1.962 MB / 454.7 MB, free: 9.836 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005947/0.5705, allocations: 0.7029 MB / 455.4 MB, free: 9.121 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008166/0.5713, allocations: 245.2 kB / 455.7 MB, free: 8.879 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.253e-05/0.5714, allocations: 7.984 kB / 455.7 MB, free: 8.871 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007512/0.5722, allocations: 279.5 kB / 455.9 MB, free: 8.582 MB / 347.1 MB Notification: Performance of pre-optimization done (n=39): time 2.835e-06/0.5722, allocations: 0 / 455.9 MB, free: 8.582 MB / 347.1 MB Notification: Performance of matching and sorting (n=39): time 0.002075/0.5743, allocations: 0.5258 MB / 456.5 MB, free: 8.047 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.5744, allocations: 89.09 kB / 456.6 MB, free: 7.941 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005789/0.575, allocations: 304.5 kB / 456.8 MB, free: 7.648 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 9.972e-05/0.5751, allocations: 25.7 kB / 456.9 MB, free: 7.617 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002275/0.5753, allocations: 271 kB / 457.1 MB, free: 7.352 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.5755, allocations: 130.1 kB / 457.3 MB, free: 7.223 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-05/0.5756, allocations: 0 / 457.3 MB, free: 7.223 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.5757, allocations: 330.8 kB / 457.6 MB, free: 6.891 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004723/0.5762, allocations: 152.8 kB / 457.7 MB, free: 6.738 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005086/0.5767, allocations: 197.7 kB / 457.9 MB, free: 6.535 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005002/0.5773, allocations: 153.8 kB / 458.1 MB, free: 6.387 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.5773, allocations: 0 / 458.1 MB, free: 6.387 MB / 347.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001834/0.5791, allocations: 0.5103 MB / 458.6 MB, free: 5.867 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.68e-05/0.5792, allocations: 33.7 kB / 458.6 MB, free: 5.828 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.5792, allocations: 0 / 458.6 MB, free: 5.828 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001509/0.5808, allocations: 337.4 kB / 459 MB, free: 5.496 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009357/0.5817, allocations: 99.86 kB / 459.1 MB, free: 5.398 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01245/0.5942, allocations: 2.992 MB / 462 MB, free: 2.289 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.5955, allocations: 103.6 kB / 462.1 MB, free: 2.188 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-05/0.5956, allocations: 8 kB / 462.2 MB, free: 2.18 MB / 347.1 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.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.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.0002661/0.5958, allocations: 121.9 kB / 462.3 MB, free: 2.055 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001901/0.5978, allocations: 0.5134 MB / 462.8 MB, free: 1.531 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.5979, allocations: 39.53 kB / 462.8 MB, free: 1.492 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001943/0.5981, allocations: 52.67 kB / 462.9 MB, free: 1.441 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.5981, allocations: 6.344 kB / 462.9 MB, free: 1.438 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.5982, allocations: 8 kB / 462.9 MB, free: 1.43 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.5982, allocations: 0 / 462.9 MB, free: 1.43 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009698/0.5992, allocations: 0.5292 MB / 463.4 MB, free: 0.8594 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.5992, allocations: 0 / 463.4 MB, free: 0.8594 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008146/0.6, allocations: 87.88 kB / 463.5 MB, free: 0.7734 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001495/0.6015, allocations: 340.3 kB / 463.8 MB, free: 452 kB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.6017, allocations: 4 kB / 463.8 MB, free: 448 kB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/0.6135, allocations: 2.991 MB / 466.8 MB, free: 13.33 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.6135, allocations: 0 / 466.8 MB, free: 13.33 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002671/0.6162, allocations: 0.7985 MB / 467.6 MB, free: 12.51 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003864/0.6166, allocations: 168.5 kB / 467.8 MB, free: 12.32 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.6168, allocations: 4 kB / 467.8 MB, free: 12.32 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.6179, allocations: 79.92 kB / 467.9 MB, free: 12.24 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002228/0.6182, allocations: 51.88 kB / 467.9 MB, free: 12.19 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.746e-05/0.6182, allocations: 15.98 kB / 467.9 MB, free: 12.18 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0004121/0.6187, allocations: 236.6 kB / 468.2 MB, free: 11.95 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6187, allocations: 3.938 kB / 468.2 MB, free: 11.94 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0009623/0.6197, allocations: 155.7 kB / 468.3 MB, free: 11.79 MB / 363.1 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,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.003103/0.6228, allocations: 1.36 MB / 469.7 MB, free: 10.4 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.002179/0.625, allocations: 0.6366 MB / 470.3 MB, free: 9.742 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.625, allocations: 0.75 kB / 470.3 MB, free: 9.742 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/0.6266, allocations: 425.3 kB / 470.7 MB, free: 9.316 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006479/0.6273, allocations: 48.08 kB / 470.8 MB, free: 9.273 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00455/0.6318, allocations: 0.9649 MB / 471.8 MB, free: 8.258 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004921/0.6324, allocations: 0.8395 MB / 472.6 MB, free: 7.395 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004073/0.6328, allocations: 143.4 kB / 472.7 MB, free: 7.254 MB / 363.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6328, allocations: 0 / 472.7 MB, free: 7.254 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.951/3.583, allocations: 10.31 MB / 483 MB, free: 12.99 MB / 379.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)