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.0009259/0.000926, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007308/0.007308, allocations: 170.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004506/0.0004508, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3455, allocations: 47.59 MB / 327 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003894/0.3494, allocations: 3.534 MB / 330.6 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002369/0.3518, allocations: 1.006 MB / 331.6 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002859/0.3522, allocations: 9.219 kB / 331.6 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002222/0.3524, allocations: 62.89 kB / 331.6 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003121/0.3527, allocations: 140.3 kB / 331.8 MB, free: 13.54 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004484/0.3532, allocations: 186.9 kB / 332 MB, free: 13.37 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008043/0.354, allocations: 0.7052 MB / 332.7 MB, free: 12.95 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000319/0.3543, allocations: 146.2 kB / 332.8 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003793/0.3547, allocations: 248.5 kB / 333.1 MB, free: 12.73 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003835/0.3551, allocations: 285.7 kB / 333.3 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.939e-05/0.3552, allocations: 32.56 kB / 333.4 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.332e-05/0.3553, allocations: 32.09 kB / 333.4 MB, free: 12.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.3554, allocations: 108.7 kB / 333.5 MB, free: 12.45 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003194/0.3557, allocations: 288.8 kB / 333.8 MB, free: 12.23 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007151/0.3565, allocations: 0.737 MB / 334.5 MB, free: 11.66 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3565, allocations: 1.094 kB / 334.5 MB, free: 11.66 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3565, allocations: 0 / 334.5 MB, free: 11.66 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.3565, allocations: 0 / 334.5 MB, free: 11.66 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.002653/0.3592, allocations: 0.949 MB / 335.5 MB, free: 10.83 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.3592, allocations: 11.97 kB / 335.5 MB, free: 10.82 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/0.3594, allocations: 60.28 kB / 335.5 MB, free: 10.76 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005781/0.36, allocations: 398.1 kB / 335.9 MB, free: 10.33 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.904e-05/0.36, allocations: 29.38 kB / 336 MB, free: 10.3 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.64e-05/0.3601, allocations: 40.12 kB / 336 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.3616, allocations: 0.5942 MB / 336.6 MB, free: 9.648 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.3616, allocations: 4 kB / 336.6 MB, free: 9.645 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.538e-05/0.3617, allocations: 16 kB / 336.6 MB, free: 9.629 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.3618, allocations: 8 kB / 336.6 MB, free: 9.621 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/0.3636, allocations: 0.6441 MB / 337.3 MB, free: 8.977 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.3675, allocations: 2.055 MB / 339.3 MB, free: 6.828 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004026/0.3716, allocations: 0.9322 MB / 340.3 MB, free: 5.887 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001049/0.3727, allocations: 405 kB / 340.6 MB, free: 5.488 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.836e-05/0.3727, allocations: 8 kB / 340.7 MB, free: 5.48 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001241/0.374, allocations: 443.4 kB / 341.1 MB, free: 5.031 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 4.638e-06/0.374, allocations: 0 / 341.1 MB, free: 5.031 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.01042/0.3844, allocations: 2.06 MB / 343.1 MB, free: 2.941 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.268e-05/0.3845, allocations: 85.09 kB / 343.2 MB, free: 2.84 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005898/0.3851, allocations: 381.7 kB / 343.6 MB, free: 2.453 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.329e-05/0.3852, allocations: 33.7 kB / 343.6 MB, free: 2.414 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/0.3854, allocations: 228.5 kB / 343.9 MB, free: 2.184 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.3856, allocations: 126.2 kB / 344 MB, free: 2.059 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.538e-05/0.3856, allocations: 41.69 kB / 344 MB, free: 2.012 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.3858, allocations: 346.8 kB / 344.4 MB, free: 1.664 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008845/0.3867, allocations: 312.6 kB / 344.7 MB, free: 1.355 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009225/0.3877, allocations: 349.9 kB / 345 MB, free: 1.004 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00172/0.3894, allocations: 0.6188 MB / 345.6 MB, free: 384 kB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.3894, allocations: 0 / 345.6 MB, free: 384 kB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005069/0.3945, allocations: 1.197 MB / 346.8 MB, free: 15.16 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/0.3946, allocations: 37.7 kB / 346.9 MB, free: 15.11 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.3946, allocations: 3.938 kB / 346.9 MB, free: 15.11 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001306/0.396, allocations: 420.5 kB / 347.3 MB, free: 14.7 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004576/0.3964, allocations: 95.88 kB / 347.4 MB, free: 14.6 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00834/0.4048, allocations: 3.502 MB / 350.9 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008464/0.4057, allocations: 111.6 kB / 351 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.576e-05/0.4058, allocations: 8 kB / 351 MB, free: 10.85 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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0003529/0.4061, allocations: 174.4 kB / 351.2 MB, free: 10.67 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.851e-05/0.4062, allocations: 43.53 kB / 351.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001287/0.4064, allocations: 56.3 kB / 351.3 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.4064, allocations: 4 kB / 351.3 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.4064, allocations: 4 kB / 351.3 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.4064, allocations: 0 / 351.3 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007216/0.4071, allocations: 0.5794 MB / 351.8 MB, free: 9.934 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.4071, allocations: 0 / 351.8 MB, free: 9.934 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004397/0.4076, allocations: 95.86 kB / 351.9 MB, free: 9.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001176/0.4088, allocations: 420.6 kB / 352.3 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.4088, allocations: 15.92 kB / 352.4 MB, free: 9.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007951/0.4168, allocations: 3.479 MB / 355.8 MB, free: 5.797 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4168, allocations: 4 kB / 355.8 MB, free: 5.793 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/0.4216, allocations: 1.408 MB / 357.3 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003446/0.422, allocations: 172.5 kB / 357.4 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.841e-05/0.422, allocations: 19.92 kB / 357.4 MB, free: 4.156 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005622/0.4226, allocations: 75.94 kB / 357.5 MB, free: 4.082 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/0.4228, allocations: 55.86 kB / 357.6 MB, free: 4.027 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.982e-05/0.4229, allocations: 19.98 kB / 357.6 MB, free: 4.008 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003518/0.4232, allocations: 271.2 kB / 357.9 MB, free: 3.746 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4232, allocations: 0 / 357.9 MB, free: 3.746 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006512/0.4239, allocations: 171.7 kB / 358 MB, free: 3.578 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002148/0.4241, allocations: 111.2 kB / 358.1 MB, free: 3.457 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002636/0.4267, allocations: 0.9539 MB / 359.1 MB, free: 2.48 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.4268, allocations: 4 kB / 359.1 MB, free: 2.477 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001471/0.4282, allocations: 0.5619 MB / 359.7 MB, free: 1.902 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006175/0.4289, allocations: 81.62 kB / 359.7 MB, free: 1.824 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003246/0.4321, allocations: 1.425 MB / 361.2 MB, free: 388 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000434/0.4326, allocations: 0.8391 MB / 362 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002474/0.4328, allocations: 39.27 kB / 362 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.879e-05/0.4329, allocations: 31.42 kB / 362.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of SimCode: time 1.001e-06/0.433, allocations: 0 / 362.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of Templates: time 0.0216/0.4546, allocations: 12.15 MB / 374.2 MB, free: 3.285 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (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)