Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001254, allocations: 100.1 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.000901/0.000901, 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.803/1.803, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004881/0.0004884, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3352, allocations: 47.58 MB / 326.4 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002815/0.3381, allocations: 2.324 MB / 328.8 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.3395, allocations: 0.7517 MB / 329.5 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.3396, allocations: 4.656 kB / 329.5 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.094e-05/0.3397, allocations: 31.22 kB / 329.6 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002667/0.34, allocations: 125.7 kB / 329.7 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002897/0.3403, allocations: 69.95 kB / 329.7 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003929/0.3407, allocations: 262.3 kB / 330 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.3409, allocations: 104.5 kB / 330.1 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001912/0.3411, allocations: 117.9 kB / 330.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002078/0.3413, allocations: 135.5 kB / 330.3 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.96e-05/0.3414, allocations: 15.91 kB / 330.4 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.958e-05/0.3414, allocations: 16.06 kB / 330.4 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.521e-05/0.3415, allocations: 46.73 kB / 330.4 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.3416, allocations: 88.23 kB / 330.5 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003162/0.3419, allocations: 312.5 kB / 330.8 MB, free: 14.08 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3419, allocations: 4 kB / 330.8 MB, free: 14.07 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.342, allocations: 0 / 330.8 MB, free: 14.07 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.342, allocations: 1 kB / 330.8 MB, free: 14.07 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001161/0.3431, allocations: 0.5788 MB / 331.4 MB, free: 13.55 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.3432, allocations: 9.188 kB / 331.4 MB, free: 13.55 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.737e-05/0.3433, allocations: 33.06 kB / 331.4 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003918/0.3437, allocations: 274 kB / 331.7 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.454e-05/0.3438, allocations: 21.67 kB / 331.7 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.713e-05/0.3438, allocations: 29.02 kB / 331.8 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006536/0.3445, allocations: 281.8 kB / 332 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.3445, allocations: 3.938 kB / 332 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.059e-05/0.3446, allocations: 10.94 kB / 332 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.3446, allocations: 7.219 kB / 332.1 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005071/0.3451, allocations: 207.9 kB / 332.3 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.3471, allocations: 1.173 MB / 333.4 MB, free: 11.93 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005701/0.3477, allocations: 220.3 kB / 333.6 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.3477, allocations: 2.469 kB / 333.6 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003875/0.3481, allocations: 169.9 kB / 333.8 MB, free: 11.67 MB / 270.1 MB Notification: Performance of pre-optimization done (n=22): time 1.422e-06/0.3481, allocations: 0 / 333.8 MB, free: 11.67 MB / 270.1 MB Notification: Performance of matching and sorting (n=22): time 0.001594/0.3497, allocations: 0.5087 MB / 334.3 MB, free: 11.34 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.655e-05/0.3498, allocations: 113.7 kB / 334.4 MB, free: 11.21 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003457/0.3502, allocations: 239 kB / 334.7 MB, free: 11 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.072e-05/0.3502, allocations: 33.7 kB / 334.7 MB, free: 10.96 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.3504, allocations: 164.5 kB / 334.9 MB, free: 10.8 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.781e-05/0.3504, allocations: 67.02 kB / 334.9 MB, free: 10.73 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.396e-05/0.3505, allocations: 7.938 kB / 334.9 MB, free: 10.72 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.3506, allocations: 334.8 kB / 335.3 MB, free: 10.39 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.3508, allocations: 83.91 kB / 335.3 MB, free: 10.3 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.351, allocations: 120.5 kB / 335.5 MB, free: 10.17 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.3512, allocations: 77.89 kB / 335.5 MB, free: 10.1 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.3512, allocations: 4 kB / 335.5 MB, free: 10.09 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005294/0.3518, allocations: 296 kB / 335.8 MB, free: 9.797 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.3518, allocations: 8 kB / 335.8 MB, free: 9.789 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.3518, allocations: 0 / 335.8 MB, free: 9.789 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003915/0.3522, allocations: 92.75 kB / 335.9 MB, free: 9.695 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.3524, allocations: 35.97 kB / 336 MB, free: 9.66 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002409/0.3548, allocations: 1.959 MB / 337.9 MB, free: 7.566 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.355, allocations: 39.8 kB / 338 MB, free: 7.527 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.3551, allocations: 4 kB / 338 MB, free: 7.523 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001943/0.3553, allocations: 153.8 kB / 338.1 MB, free: 7.363 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.183e-05/0.3553, allocations: 27.67 kB / 338.1 MB, free: 7.336 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.597e-05/0.3554, allocations: 30.17 kB / 338.2 MB, free: 7.305 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3554, allocations: 4 kB / 338.2 MB, free: 7.301 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3554, allocations: 0 / 338.2 MB, free: 7.301 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.3554, allocations: 4 kB / 338.2 MB, free: 7.297 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000419/0.3558, allocations: 353.3 kB / 338.5 MB, free: 6.902 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.3559, allocations: 112 / 338.5 MB, free: 6.902 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00013/0.356, allocations: 31.92 kB / 338.6 MB, free: 6.871 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002618/0.3563, allocations: 92.75 kB / 338.6 MB, free: 6.777 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.3563, allocations: 0 / 338.6 MB, free: 6.777 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002237/0.3585, allocations: 1.956 MB / 340.6 MB, free: 4.691 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3586, allocations: 0 / 340.6 MB, free: 4.691 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007479/0.3593, allocations: 414.3 kB / 341 MB, free: 4.266 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.3595, allocations: 128.7 kB / 341.1 MB, free: 4.121 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.3595, allocations: 7.984 kB / 341.1 MB, free: 4.113 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.3597, allocations: 31.98 kB / 341.2 MB, free: 4.082 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.3598, allocations: 39.89 kB / 341.2 MB, free: 4.043 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.3598, allocations: 7.984 kB / 341.2 MB, free: 4.035 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001765/0.36, allocations: 172.8 kB / 341.4 MB, free: 3.867 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.36, allocations: 0 / 341.4 MB, free: 3.867 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004366/0.3605, allocations: 91.84 kB / 341.5 MB, free: 3.777 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001566/0.3606, allocations: 115.2 kB / 341.6 MB, free: 3.652 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006723/0.3613, allocations: 354.4 kB / 341.9 MB, free: 3.293 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3613, allocations: 0 / 341.9 MB, free: 3.293 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003923/0.3617, allocations: 270.6 kB / 342.2 MB, free: 3.016 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.3621, allocations: 48.78 kB / 342.2 MB, free: 2.969 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.3634, allocations: 0.7231 MB / 343 MB, free: 2.223 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004332/0.3638, allocations: 0.7752 MB / 343.7 MB, free: 1.422 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.728e-05/0.3639, allocations: 18.28 kB / 343.8 MB, free: 1.406 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.494e-05/0.364, allocations: 27.42 kB / 343.8 MB, free: 1.379 MB / 270.1 MB Notification: Performance of SimCode: time 2.31e-07/0.364, allocations: 0 / 343.8 MB, free: 1.379 MB / 270.1 MB Notification: Performance of Templates: time 0.009041/0.373, allocations: 4.286 MB / 348.1 MB, free: 13.09 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) Environment - environmentSimulation: