Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_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.001043/0.001042, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.464/1.464, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008188/0.0008185, allocations: 82.72 kB / 262.4 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.83e-05/1.794e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08379/0.08382, allocations: 47.58 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3159/0.3998, allocations: 79.92 MB / 443.1 MB, free: 15.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.4, allocations: 70.41 kB / 443.2 MB, free: 15.43 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02429/0.4243, allocations: 8.488 MB / 451.6 MB, free: 8.262 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4244, allocations: 0 / 451.6 MB, free: 8.262 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.011e-05/0.4244, allocations: 12 kB / 451.7 MB, free: 8.25 MB / 330.7 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.001957/0.4264, allocations: 0.8307 MB / 452.5 MB, free: 7.398 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.4264, allocations: 8.031 kB / 452.5 MB, free: 7.391 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.4266, allocations: 59.34 kB / 452.5 MB, free: 7.332 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00054/0.4271, allocations: 374 kB / 452.9 MB, free: 6.988 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.773e-05/0.4272, allocations: 27.88 kB / 452.9 MB, free: 6.961 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.978e-05/0.4272, allocations: 27.98 kB / 453 MB, free: 6.934 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006437/0.4279, allocations: 360.9 kB / 453.3 MB, free: 6.738 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006863/0.4286, allocations: 409.8 kB / 453.7 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.4286, allocations: 0 / 453.7 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.594e-05/0.4287, allocations: 0 / 453.7 MB, free: 6.434 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.4287, allocations: 8 kB / 453.7 MB, free: 6.426 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00351/0.4322, allocations: 1.969 MB / 455.7 MB, free: 4.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002969/0.4352, allocations: 0.7064 MB / 456.4 MB, free: 4.301 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003488/0.4355, allocations: 248.2 kB / 456.6 MB, free: 4.156 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.072e-05/0.4356, allocations: 4 kB / 456.7 MB, free: 4.152 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004771/0.4361, allocations: 277 kB / 456.9 MB, free: 3.949 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 1.613e-06/0.4361, allocations: 0 / 456.9 MB, free: 3.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.001131/0.4372, allocations: 0.5361 MB / 457.5 MB, free: 3.566 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.4373, allocations: 81.11 kB / 457.5 MB, free: 3.469 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003263/0.4376, allocations: 302.2 kB / 457.8 MB, free: 3.242 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.4377, allocations: 29.7 kB / 457.9 MB, free: 3.207 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.4378, allocations: 220.8 kB / 458.1 MB, free: 3.051 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.438, allocations: 129.2 kB / 458.2 MB, free: 2.938 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.121e-05/0.438, allocations: 3.938 kB / 458.2 MB, free: 2.934 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.4381, allocations: 363 kB / 458.6 MB, free: 2.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002526/0.4384, allocations: 153.6 kB / 458.7 MB, free: 2.508 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002688/0.4387, allocations: 196.4 kB / 458.9 MB, free: 2.387 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002467/0.4389, allocations: 145.5 kB / 459 MB, free: 2.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4389, allocations: 0 / 459 MB, free: 2.309 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009898/0.4399, allocations: 0.5429 MB / 459.6 MB, free: 1.934 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.845e-05/0.44, allocations: 33.7 kB / 459.6 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.44, allocations: 0 / 459.6 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008459/0.4409, allocations: 335.1 kB / 459.9 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004393/0.4413, allocations: 95.23 kB / 460 MB, free: 1.559 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006261/0.4476, allocations: 2.985 MB / 463 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000715/0.4483, allocations: 103.7 kB / 463.1 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.141e-05/0.4484, allocations: 15.31 kB / 463.1 MB, free: 15 MB / 346.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.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.0001958/0.4486, allocations: 121.9 kB / 463.3 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001041/0.4496, allocations: 0.515 MB / 463.8 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.759e-05/0.4497, allocations: 47.38 kB / 463.8 MB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.4498, allocations: 53.69 kB / 463.9 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.4499, allocations: 4 kB / 463.9 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.4499, allocations: 0 / 463.9 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.4499, allocations: 0 / 463.9 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005744/0.4504, allocations: 0.5247 MB / 464.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.4505, allocations: 0 / 464.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004382/0.4509, allocations: 87.92 kB / 464.5 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000763/0.4517, allocations: 338.5 kB / 464.8 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.399e-05/0.4517, allocations: 2.938 kB / 464.8 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006135/0.4579, allocations: 2.996 MB / 467.8 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4579, allocations: 0 / 467.8 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.4593, allocations: 0.8016 MB / 468.6 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/0.4596, allocations: 164.2 kB / 468.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.021e-05/0.4596, allocations: 3.562 kB / 468.8 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006018/0.4603, allocations: 79.92 kB / 468.9 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.4604, allocations: 50.12 kB / 468.9 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.793e-05/0.4604, allocations: 15.55 kB / 468.9 MB, free: 10.42 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002461/0.4607, allocations: 241.7 kB / 469.2 MB, free: 10.24 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.343e-06/0.4607, allocations: 0 / 469.2 MB, free: 10.24 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005903/0.4613, allocations: 163.6 kB / 469.3 MB, free: 10.08 MB / 346.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,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.001729/0.463, allocations: 1.352 MB / 470.7 MB, free: 8.992 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001328/0.4644, allocations: 0.6312 MB / 471.3 MB, free: 8.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.4644, allocations: 4.062 kB / 471.3 MB, free: 8.516 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008211/0.4652, allocations: 424 kB / 471.7 MB, free: 8.203 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003823/0.4656, allocations: 56.47 kB / 471.8 MB, free: 8.164 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/0.4683, allocations: 0.9275 MB / 472.7 MB, free: 7.234 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.4687, allocations: 0.8394 MB / 473.5 MB, free: 6.371 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002279/0.469, allocations: 43.27 kB / 473.6 MB, free: 6.328 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.4692, allocations: 143.4 kB / 473.7 MB, free: 6.188 MB / 346.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4692, allocations: 0 / 473.7 MB, free: 6.188 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04064/0.5098, allocations: 13.05 MB / 486.8 MB, free: 9.125 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001614/0.5101, allocations: 139.2 kB / 486.9 MB, free: 8.938 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.39/2.9, allocations: 3.938 kB / 486.9 MB, free: 8.934 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)