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.001056/0.001056, allocations: 182 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009025/0.0009024, allocations: 90.59 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002591/0.0002592, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2855, allocations: 47.56 MB / 375.9 MB, free: 45.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.107/0.3925, allocations: 80.42 MB / 456.3 MB, free: 120 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.3928, allocations: 71.95 kB / 456.4 MB, free: 48 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02564/0.4185, allocations: 8.577 MB / 465 MB, free: 7.426 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.63e-06/0.4185, allocations: 0 / 465 MB, free: 7.426 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.15e-05/0.4186, allocations: 11.94 kB / 465 MB, free: 7.414 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002428/0.421, allocations: 0.9028 MB / 465.9 MB, free: 6.457 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.4211, allocations: 8.406 kB / 465.9 MB, free: 6.449 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001409/0.4212, allocations: 82.47 kB / 466 MB, free: 6.359 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.4214, allocations: 59.25 kB / 466 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006009/0.422, allocations: 385 kB / 466.4 MB, free: 5.883 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.86e-05/0.422, allocations: 29 kB / 466.4 MB, free: 5.855 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.876e-05/0.4221, allocations: 36 kB / 466.5 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.4235, allocations: 0.5865 MB / 467.1 MB, free: 5.211 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.4235, allocations: 3.938 kB / 467.1 MB, free: 5.207 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.17e-05/0.4235, allocations: 16 kB / 467.1 MB, free: 5.191 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.4236, allocations: 8 kB / 467.1 MB, free: 5.184 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.4253, allocations: 0.6441 MB / 467.7 MB, free: 4.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004102/0.4294, allocations: 2.061 MB / 469.8 MB, free: 2.387 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004285/0.4337, allocations: 0.9559 MB / 470.8 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.712e-05/0.4338, allocations: 7.984 kB / 470.8 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/0.4349, allocations: 431.7 kB / 471.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 2.846e-06/0.4349, allocations: 0 / 471.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.009032/0.4439, allocations: 1.97 MB / 473.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.444, allocations: 93.05 kB / 473.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004913/0.4445, allocations: 340.9 kB / 473.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.844e-05/0.4446, allocations: 33.7 kB / 473.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001777/0.4448, allocations: 220.6 kB / 473.8 MB, free: 14.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.4449, allocations: 138 kB / 474 MB, free: 14.13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.986e-05/0.4449, allocations: 4 kB / 474 MB, free: 14.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.4451, allocations: 350.8 kB / 474.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008305/0.4459, allocations: 300.6 kB / 474.6 MB, free: 13.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008813/0.4468, allocations: 350.1 kB / 474.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008211/0.4476, allocations: 323.5 kB / 475.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.4477, allocations: 0 / 475.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00234/0.45, allocations: 0.9133 MB / 476.2 MB, free: 11.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.596e-05/0.4501, allocations: 37.69 kB / 476.2 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.4501, allocations: 0 / 476.2 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/0.4513, allocations: 420.1 kB / 476.6 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004468/0.4518, allocations: 103.9 kB / 476.7 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009118/0.4609, allocations: 3.61 MB / 480.3 MB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008512/0.4618, allocations: 107.6 kB / 480.4 MB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-05/0.4619, allocations: 19.94 kB / 480.5 MB, free: 7.449 MB / 362.7 MB 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 () * Number of clocked 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.0003212/0.4622, allocations: 165.8 kB / 480.6 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.4623, allocations: 43.44 kB / 480.7 MB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001353/0.4625, allocations: 56.36 kB / 480.7 MB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.4625, allocations: 4 kB / 480.7 MB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.4625, allocations: 0 / 480.7 MB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.4625, allocations: 3.953 kB / 480.7 MB, free: 7.172 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007112/0.4632, allocations: 0.5873 MB / 481.3 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.4633, allocations: 0 / 481.3 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004471/0.4637, allocations: 83.92 kB / 481.4 MB, free: 6.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001146/0.4649, allocations: 424.5 kB / 481.8 MB, free: 6.035 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.443e-05/0.4649, allocations: 4 kB / 481.8 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008788/0.4737, allocations: 3.609 MB / 485.4 MB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.4738, allocations: 0 / 485.4 MB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003335/0.4771, allocations: 1.287 MB / 486.7 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000286/0.4774, allocations: 168.5 kB / 486.9 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.137e-05/0.4775, allocations: 11.95 kB / 486.9 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006418/0.4782, allocations: 83.92 kB / 487 MB, free: 0.707 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.4783, allocations: 51.86 kB / 487 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.921e-05/0.4784, allocations: 20 kB / 487 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003375/0.4787, allocations: 271.2 kB / 487.3 MB, free: 384 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4787, allocations: 0 / 487.3 MB, free: 384 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006608/0.4794, allocations: 171.7 kB / 487.5 MB, free: 212 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,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 (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.003716/0.4831, allocations: 1.851 MB / 489.3 MB, free: 14.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.4856, allocations: 0.939 MB / 490.3 MB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.4857, allocations: 4 kB / 490.3 MB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.4871, allocations: 0.5648 MB / 490.8 MB, free: 12.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004412/0.4876, allocations: 77.59 kB / 490.9 MB, free: 12.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.4991, allocations: 4.168 MB / 495.1 MB, free: 8.484 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/0.4997, allocations: 0.8358 MB / 495.9 MB, free: 7.621 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003045/0.5, allocations: 47.2 kB / 496 MB, free: 7.578 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002471/0.5003, allocations: 147.4 kB / 496.1 MB, free: 7.434 MB / 378.7 MB Notification: Performance of SimCode: time 1.593e-06/0.5003, allocations: 0 / 496.1 MB, free: 7.434 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2258/0.726, allocations: 14.68 MB / 0.4988 GB, free: 110.1 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000143/0.7262, allocations: 229.1 kB / 0.499 GB, free: 109.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.407/3.133, allocations: 3.938 kB / 0.499 GB, free: 109.9 MB / 378.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)