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.005836/0.005836, allocations: 96.72 kB / 15.73 MB, free: 6 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.001149/0.001149, allocations: 185.4 kB / 16.67 MB, free: 5.93 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.588/1.588, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.001566/0.001566, allocations: 57.91 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1674, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00768/0.1752, allocations: 3.887 MB / 377.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003237/0.1785, allocations: 1.033 MB / 378.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008563/0.1794, allocations: 4 kB / 378.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005227/0.18, allocations: 91.14 kB / 378.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009422/0.181, allocations: 158.5 kB / 378.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009501/0.1819, allocations: 211.7 kB / 378.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001539/0.1835, allocations: 0.7666 MB / 379.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004638/0.184, allocations: 164.9 kB / 379.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008696/0.1849, allocations: 299 kB / 379.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007987/0.1857, allocations: 334.7 kB / 380.1 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002421/0.1859, allocations: 76 kB / 380.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002301/0.1862, allocations: 76 kB / 380.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001822/0.1864, allocations: 155.5 kB / 380.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005788/0.187, allocations: 318.6 kB / 380.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001395/0.1884, allocations: 0.8095 MB / 381.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.445e-06/0.1884, allocations: 0 / 381.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.023e-06/0.1884, allocations: 0 / 381.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.66e-05/0.1885, allocations: 3.938 kB / 381.5 MB, free: 8.922 MB / 318.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.003479/0.1919, allocations: 0.9871 MB / 382.5 MB, free: 7.879 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.281e-05/0.192, allocations: 12.03 kB / 382.5 MB, free: 7.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.1922, allocations: 60.56 kB / 382.6 MB, free: 7.809 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000874/0.1931, allocations: 406.3 kB / 383 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.698e-05/0.1931, allocations: 29.38 kB / 383 MB, free: 7.344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.765e-05/0.1932, allocations: 40.12 kB / 383 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.1947, allocations: 0.5591 MB / 383.6 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.1947, allocations: 4 kB / 383.6 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.037e-05/0.1948, allocations: 16 kB / 383.6 MB, free: 6.703 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.1948, allocations: 8 kB / 383.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001663/0.1965, allocations: 0.5738 MB / 384.2 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003672/0.2002, allocations: 2.008 MB / 386.2 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003517/0.2037, allocations: 0.7798 MB / 387 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009236/0.2046, allocations: 368.7 kB / 387.3 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.231e-05/0.2047, allocations: 7.984 kB / 387.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001058/0.2058, allocations: 411.6 kB / 387.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 2.174e-06/0.2058, allocations: 0 / 387.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.008992/0.2148, allocations: 1.791 MB / 389.5 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.2149, allocations: 81.11 kB / 389.6 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005413/0.2155, allocations: 389.7 kB / 390 MB, free: 140 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.209e-05/0.2156, allocations: 37.7 kB / 390 MB, free: 96 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002167/0.2158, allocations: 221 kB / 390.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.2159, allocations: 134.8 kB / 390.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/0.2161, allocations: 74.06 kB / 390.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.2163, allocations: 346.8 kB / 390.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000887/0.2172, allocations: 268.6 kB / 391.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008375/0.218, allocations: 317.9 kB / 391.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/0.2196, allocations: 0.5446 MB / 391.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.2197, allocations: 0 / 391.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004518/0.2242, allocations: 1.049 MB / 393 MB, free: 13.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.698e-05/0.2243, allocations: 45.69 kB / 393 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.2243, allocations: 0 / 393 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001277/0.2256, allocations: 396.4 kB / 393.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004588/0.2261, allocations: 79.92 kB / 393.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009686/0.2357, allocations: 3.685 MB / 397.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009798/0.2368, allocations: 87.7 kB / 397.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.237, allocations: 11.98 kB / 397.3 MB, free: 8.66 MB / 334.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.0005431/0.2375, allocations: 177.8 kB / 397.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001822/0.2377, allocations: 47.66 kB / 397.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001767/0.2379, allocations: 52.38 kB / 397.5 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.2379, allocations: 4 kB / 397.5 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.2379, allocations: 0 / 397.5 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.2379, allocations: 3.984 kB / 397.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.239, allocations: 0.5835 MB / 398.1 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.239, allocations: 3.938 kB / 398.1 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004423/0.2395, allocations: 71.94 kB / 398.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001226/0.2407, allocations: 400.5 kB / 398.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.078e-05/0.2408, allocations: 8 kB / 398.6 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008703/0.2495, allocations: 3.666 MB / 402.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.876e-06/0.2495, allocations: 3.984 kB / 402.3 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004547/0.2541, allocations: 1.263 MB / 403.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003387/0.2545, allocations: 172.7 kB / 403.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.2546, allocations: 11.94 kB / 403.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005639/0.2551, allocations: 63.92 kB / 403.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.2553, allocations: 47.94 kB / 403.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.964e-05/0.2554, allocations: 15.92 kB / 403.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003511/0.2558, allocations: 271.2 kB / 404.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2558, allocations: 4 kB / 404.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000754/0.2565, allocations: 175.8 kB / 404.3 MB, free: 1.398 MB / 334.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.0001936/0.2567, allocations: 115.1 kB / 404.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0026/0.2593, allocations: 0.8721 MB / 405.3 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.2594, allocations: 0 / 405.3 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001458/0.2608, allocations: 0.5412 MB / 405.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000531/0.2614, allocations: 81.45 kB / 405.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/0.2647, allocations: 1.166 MB / 407 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005539/0.2652, allocations: 0.8356 MB / 407.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002388/0.2655, allocations: 39.28 kB / 407.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.2656, allocations: 31.44 kB / 408 MB, free: 13.61 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2657, allocations: 0 / 408 MB, free: 13.61 MB / 350.1 MB Notification: Performance of Templates: time 0.0234/0.2891, allocations: 13.26 MB / 421.2 MB, free: 340 kB / 350.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)