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: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001541/0.001541, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2/2, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001924/0.001924, allocations: 86.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.207e-05/3.217e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0945/0.09456, allocations: 47.57 MB / 369.1 MB, free: 2.211 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4073/0.5019, allocations: 80.34 MB / 449.4 MB, free: 12.87 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.5022, allocations: 67.25 kB / 449.5 MB, free: 12.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04339/0.5457, allocations: 8.565 MB / 458.1 MB, free: 5.484 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5457, allocations: 0 / 458.1 MB, free: 5.484 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.899e-05/0.5458, allocations: 16 kB / 458.1 MB, free: 5.469 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.003417/0.5492, allocations: 0.8293 MB / 458.9 MB, free: 4.617 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.844e-05/0.5493, allocations: 8.031 kB / 458.9 MB, free: 4.609 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000293/0.5496, allocations: 55.34 kB / 459 MB, free: 4.555 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008402/0.5504, allocations: 385 kB / 459.3 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.845e-05/0.5505, allocations: 33.23 kB / 459.4 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.5507, allocations: 37.81 kB / 459.4 MB, free: 4.156 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.552, allocations: 464.2 kB / 459.9 MB, free: 3.832 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.552, allocations: 0 / 459.9 MB, free: 3.832 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.308e-05/0.5521, allocations: 15.38 kB / 459.9 MB, free: 3.828 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.552e-05/0.5521, allocations: 8 kB / 459.9 MB, free: 3.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.5533, allocations: 386.6 kB / 460.3 MB, free: 3.594 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006309/0.5596, allocations: 2.048 MB / 462.3 MB, free: 1.773 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005978/0.5657, allocations: 0.7217 MB / 463 MB, free: 1.039 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008992/0.5666, allocations: 265.2 kB / 463.3 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.146e-05/0.5667, allocations: 4 kB / 463.3 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008176/0.5676, allocations: 301 kB / 463.6 MB, free: 476 kB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 3.106e-06/0.5676, allocations: 0 / 463.6 MB, free: 476 kB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.002285/0.5699, allocations: 0.5492 MB / 464.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.033e-05/0.57, allocations: 85.06 kB / 464.2 MB, free: 15.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006996/0.5707, allocations: 338.8 kB / 464.5 MB, free: 15.46 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001351/0.5709, allocations: 33.7 kB / 464.6 MB, free: 15.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.5711, allocations: 267 kB / 464.8 MB, free: 15.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.5713, allocations: 130.1 kB / 465 MB, free: 15.03 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.254e-05/0.5714, allocations: 8 kB / 465 MB, free: 15.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.5716, allocations: 326.8 kB / 465.3 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005821/0.5722, allocations: 168.8 kB / 465.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005835/0.5728, allocations: 206.1 kB / 465.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005404/0.5733, allocations: 179.5 kB / 465.8 MB, free: 14.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.5733, allocations: 0 / 465.8 MB, free: 14.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002019/0.5754, allocations: 0.5781 MB / 466.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.591e-05/0.5755, allocations: 33.64 kB / 466.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.5755, allocations: 0 / 466.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/0.5771, allocations: 344.5 kB / 466.8 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008996/0.578, allocations: 87.94 kB / 466.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01273/0.5908, allocations: 3.086 MB / 470 MB, free: 9.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.5922, allocations: 107.6 kB / 470.1 MB, free: 9.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.743e-05/0.5923, allocations: 19.94 kB / 470.1 MB, free: 9.738 MB / 346.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 () * 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.0002298/0.5925, allocations: 125.9 kB / 470.2 MB, free: 9.609 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.5927, allocations: 43.44 kB / 470.2 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002083/0.5929, allocations: 48.5 kB / 470.3 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.5929, allocations: 4 kB / 470.3 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.593, allocations: 8 kB / 470.3 MB, free: 9.508 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.593, allocations: 7.938 kB / 470.3 MB, free: 9.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.5942, allocations: 0.5795 MB / 470.9 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.5942, allocations: 3.938 kB / 470.9 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008822/0.5951, allocations: 87.94 kB / 471 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001613/0.5968, allocations: 336.7 kB / 471.3 MB, free: 8.445 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.5969, allocations: 7.984 kB / 471.3 MB, free: 8.438 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/0.6095, allocations: 3.078 MB / 474.4 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.6095, allocations: 0 / 474.4 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003055/0.6126, allocations: 0.8372 MB / 475.2 MB, free: 4.363 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004144/0.6131, allocations: 168.6 kB / 475.4 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.6132, allocations: 7.953 kB / 475.4 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/0.6144, allocations: 87.92 kB / 475.5 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002603/0.6147, allocations: 51.92 kB / 475.5 MB, free: 4.035 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.34e-05/0.6148, allocations: 11.98 kB / 475.6 MB, free: 4.023 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005391/0.6154, allocations: 265.2 kB / 475.8 MB, free: 3.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6154, allocations: 0 / 475.8 MB, free: 3.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00107/0.6164, allocations: 183.6 kB / 476 MB, free: 3.59 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.0002802/0.6167, allocations: 115.2 kB / 476.1 MB, free: 3.465 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00241/0.6192, allocations: 0.6579 MB / 476.8 MB, free: 2.781 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.6192, allocations: 0 / 476.8 MB, free: 2.781 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/0.6208, allocations: 446 kB / 477.2 MB, free: 2.332 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007172/0.6216, allocations: 76.09 kB / 477.3 MB, free: 2.258 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004171/0.6258, allocations: 0.8971 MB / 478.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005477/0.6264, allocations: 0.8436 MB / 479 MB, free: 476 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.6267, allocations: 31.44 kB / 479 MB, free: 444 kB / 346.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6267, allocations: 0 / 479 MB, free: 444 kB / 346.7 MB Notification: Performance of Templates: time 0.01985/0.6465, allocations: 8.509 MB / 487.6 MB, free: 7.918 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)