Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 99.7 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001478, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.913/1.913, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004817/0.0004818, allocations: 8 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3783, allocations: 47.59 MB / 326.4 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004865/0.3833, allocations: 3.146 MB / 329.6 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002867/0.3862, allocations: 1.016 MB / 330.6 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007287/0.387, allocations: 10.75 kB / 330.6 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002624/0.3873, allocations: 57.11 kB / 330.7 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008708/0.3881, allocations: 197.5 kB / 330.9 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006275/0.3888, allocations: 124.6 kB / 331 MB, free: 13.79 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001137/0.3899, allocations: 464.5 kB / 331.4 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003875/0.3903, allocations: 147.1 kB / 331.6 MB, free: 13.4 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006766/0.391, allocations: 235.5 kB / 331.8 MB, free: 13.27 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006505/0.3917, allocations: 281.8 kB / 332.1 MB, free: 13.09 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001604/0.3919, allocations: 32.56 kB / 332.1 MB, free: 13.09 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002086/0.3921, allocations: 35.91 kB / 332.2 MB, free: 13.08 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.3922, allocations: 100.2 kB / 332.3 MB, free: 13 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.3924, allocations: 123.9 kB / 332.4 MB, free: 12.91 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006277/0.393, allocations: 0.5929 MB / 333 MB, free: 12.45 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.393, allocations: 1.156 kB / 333 MB, free: 12.45 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3931, allocations: 0 / 333 MB, free: 12.45 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.3931, allocations: 0 / 333 MB, free: 12.45 MB / 270.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.002762/0.3958, allocations: 0.9549 MB / 333.9 MB, free: 11.73 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.3959, allocations: 9.156 kB / 333.9 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001545/0.3961, allocations: 59.69 kB / 334 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006279/0.3967, allocations: 383.7 kB / 334.4 MB, free: 11.34 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.985e-05/0.3968, allocations: 32.06 kB / 334.4 MB, free: 11.32 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.444e-05/0.3968, allocations: 37.28 kB / 334.4 MB, free: 11.31 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.3983, allocations: 0.595 MB / 335 MB, free: 10.79 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.3983, allocations: 0 / 335 MB, free: 10.79 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.106e-05/0.3984, allocations: 12 kB / 335 MB, free: 10.78 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.3984, allocations: 8 kB / 335.1 MB, free: 10.77 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001806/0.4002, allocations: 0.6441 MB / 335.7 MB, free: 10.13 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003778/0.404, allocations: 2.051 MB / 337.7 MB, free: 7.98 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003855/0.4079, allocations: 0.9366 MB / 338.7 MB, free: 7.035 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.725e-05/0.408, allocations: 4.625 kB / 338.7 MB, free: 7.031 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001141/0.4091, allocations: 431.7 kB / 339.1 MB, free: 6.594 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 2.434e-06/0.4091, allocations: 0 / 339.1 MB, free: 6.594 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.009637/0.4188, allocations: 2.037 MB / 341.1 MB, free: 4.527 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.587e-05/0.4189, allocations: 89.06 kB / 341.2 MB, free: 4.422 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000692/0.4196, allocations: 385.6 kB / 341.6 MB, free: 4.031 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 9.305e-05/0.4197, allocations: 33.7 kB / 341.6 MB, free: 3.992 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.42, allocations: 220.6 kB / 341.9 MB, free: 3.77 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.4202, allocations: 130.1 kB / 342 MB, free: 3.641 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.358e-05/0.4202, allocations: 12 kB / 342 MB, free: 3.629 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.4204, allocations: 350.8 kB / 342.3 MB, free: 3.277 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009183/0.4214, allocations: 304.6 kB / 342.6 MB, free: 2.977 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009341/0.4223, allocations: 338.1 kB / 343 MB, free: 2.637 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009136/0.4232, allocations: 323.5 kB / 343.3 MB, free: 2.316 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.4233, allocations: 0 / 343.3 MB, free: 2.316 MB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004624/0.4279, allocations: 1.182 MB / 344.5 MB, free: 1.117 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.871e-05/0.428, allocations: 33.69 kB / 344.5 MB, free: 1.078 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.428, allocations: 0 / 344.5 MB, free: 1.078 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/0.4294, allocations: 424.5 kB / 344.9 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005273/0.4299, allocations: 99.86 kB / 345 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008716/0.4387, allocations: 3.635 MB / 348.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008994/0.4396, allocations: 111.7 kB / 348.8 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-05/0.4397, allocations: 8 kB / 348.8 MB, free: 12.68 MB / 286.1 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.0004199/0.4401, allocations: 170.5 kB / 348.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.642e-05/0.4402, allocations: 51.38 kB / 349 MB, free: 12.45 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.4404, allocations: 52.38 kB / 349 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.4404, allocations: 4 kB / 349 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.4404, allocations: 0 / 349 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.4404, allocations: 4 kB / 349 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008597/0.4413, allocations: 0.5795 MB / 349.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.4413, allocations: 7.953 kB / 349.6 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004787/0.4418, allocations: 91.86 kB / 349.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001274/0.4431, allocations: 412.6 kB / 350.1 MB, free: 11.26 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.636e-05/0.4431, allocations: 11.98 kB / 350.1 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008775/0.4519, allocations: 3.623 MB / 353.8 MB, free: 7.492 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.452, allocations: 4 kB / 353.8 MB, free: 7.488 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004702/0.4567, allocations: 1.404 MB / 355.2 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003453/0.4571, allocations: 168.6 kB / 355.3 MB, free: 5.879 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.988e-05/0.4572, allocations: 12 kB / 355.3 MB, free: 5.867 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000565/0.4578, allocations: 87.92 kB / 355.4 MB, free: 5.781 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002126/0.458, allocations: 47.92 kB / 355.5 MB, free: 5.734 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-05/0.458, allocations: 19.98 kB / 355.5 MB, free: 5.715 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003585/0.4584, allocations: 267.2 kB / 355.7 MB, free: 5.457 MB / 286.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.4584, allocations: 0 / 355.7 MB, free: 5.457 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007569/0.4592, allocations: 175.7 kB / 355.9 MB, free: 5.285 MB / 286.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) * 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.0001843/0.4594, allocations: 107.2 kB / 356 MB, free: 5.168 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002555/0.4619, allocations: 0.9352 MB / 357 MB, free: 4.207 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.4619, allocations: 4 kB / 357 MB, free: 4.203 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.4634, allocations: 0.5814 MB / 357.5 MB, free: 3.609 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.4639, allocations: 69.47 kB / 357.6 MB, free: 3.539 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0031/0.467, allocations: 1.385 MB / 359 MB, free: 2.137 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/0.4675, allocations: 0.843 MB / 359.8 MB, free: 1.27 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002428/0.4677, allocations: 43.27 kB / 359.9 MB, free: 1.223 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.199e-05/0.4678, allocations: 23.44 kB / 359.9 MB, free: 1.199 MB / 286.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4679, allocations: 0 / 359.9 MB, free: 1.199 MB / 286.1 MB Notification: Performance of Templates: time 0.01895/0.4868, allocations: 11.86 MB / 371.8 MB, free: 5.328 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) Environment - environmentSimulation: