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.007675/0.007675, allocations: 102.5 kB / 15.73 MB, free: 5.984 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.001398/0.001398, allocations: 199.2 kB / 16.68 MB, free: 5.91 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.734/1.734, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.001367/0.001367, allocations: 54.39 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1499, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005984/0.1559, allocations: 3.887 MB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002374/0.1584, allocations: 1.037 MB / 378.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000305/0.1587, allocations: 4 kB / 378.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000273/0.159, allocations: 87.14 kB / 378.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003535/0.1594, allocations: 170.5 kB / 378.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005578/0.16, allocations: 203.7 kB / 378.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008652/0.1608, allocations: 0.7666 MB / 379.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003817/0.1612, allocations: 172.9 kB / 379.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004173/0.1617, allocations: 291 kB / 379.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000448/0.1621, allocations: 338.7 kB / 380.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.1623, allocations: 79.98 kB / 380.2 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.1624, allocations: 76 kB / 380.3 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001563/0.1625, allocations: 151.5 kB / 380.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003426/0.1629, allocations: 310.6 kB / 380.7 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009669/0.1639, allocations: 0.8022 MB / 381.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1639, allocations: 3.938 kB / 381.5 MB, free: 8.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.1639, allocations: 3.984 kB / 381.5 MB, free: 8.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.1639, allocations: 0 / 381.5 MB, free: 8.906 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.002635/0.1666, allocations: 0.9797 MB / 382.5 MB, free: 7.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.1666, allocations: 12.03 kB / 382.5 MB, free: 7.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.1668, allocations: 56.28 kB / 382.6 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008236/0.1676, allocations: 401.9 kB / 383 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.801e-05/0.1677, allocations: 33.31 kB / 383 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.353e-05/0.1678, allocations: 40.12 kB / 383 MB, free: 7.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.1693, allocations: 0.5591 MB / 383.6 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.1693, allocations: 3.938 kB / 383.6 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.991e-05/0.1694, allocations: 16 kB / 383.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.605e-05/0.1694, allocations: 8 kB / 383.6 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0019/0.1713, allocations: 0.5777 MB / 384.2 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004344/0.1757, allocations: 2 MB / 386.2 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003733/0.1794, allocations: 0.7876 MB / 387 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.1804, allocations: 372.6 kB / 387.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.654e-05/0.1805, allocations: 4 kB / 387.4 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/0.1817, allocations: 399.6 kB / 387.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 3.135e-06/0.1817, allocations: 0 / 387.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.009994/0.1917, allocations: 1.791 MB / 389.5 MB, free: 0.625 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.1919, allocations: 85.11 kB / 389.6 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008168/0.1927, allocations: 385.6 kB / 390 MB, free: 144 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.914e-05/0.1928, allocations: 33.7 kB / 390 MB, free: 104 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003717/0.1932, allocations: 224.6 kB / 390.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000208/0.1934, allocations: 134 kB / 390.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002468/0.1937, allocations: 70.06 kB / 390.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003188/0.194, allocations: 354.8 kB / 390.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000938/0.195, allocations: 268.6 kB / 391.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009535/0.1959, allocations: 309.9 kB / 391.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00171/0.1977, allocations: 0.5407 MB / 391.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.1977, allocations: 0 / 391.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004784/0.2025, allocations: 1.056 MB / 393 MB, free: 13.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.236e-05/0.2026, allocations: 29.7 kB / 393 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.2026, allocations: 4 kB / 393 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/0.204, allocations: 404.4 kB / 393.4 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004702/0.2045, allocations: 75.92 kB / 393.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009695/0.2142, allocations: 3.673 MB / 397.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008912/0.2151, allocations: 83.66 kB / 397.2 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.345e-05/0.2152, allocations: 12 kB / 397.2 MB, free: 8.688 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.0004433/0.2157, allocations: 169.9 kB / 397.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.2158, allocations: 51.45 kB / 397.4 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001722/0.216, allocations: 52.38 kB / 397.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.216, allocations: 15.88 kB / 397.5 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.216, allocations: 0 / 397.5 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.2161, allocations: 0 / 397.5 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.2172, allocations: 0.591 MB / 398.1 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.902e-05/0.2173, allocations: 3.938 kB / 398.1 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004726/0.2177, allocations: 71.92 kB / 398.2 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001227/0.219, allocations: 392.5 kB / 398.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.565e-05/0.2191, allocations: 11.98 kB / 398.6 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009464/0.2285, allocations: 3.661 MB / 402.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.2286, allocations: 0 / 402.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004554/0.2331, allocations: 1.255 MB / 403.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003104/0.2335, allocations: 176.6 kB / 403.7 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.2336, allocations: 11.94 kB / 403.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006101/0.2342, allocations: 63.92 kB / 403.7 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.2344, allocations: 47.94 kB / 403.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-05/0.2344, allocations: 12 kB / 403.8 MB, free: 1.875 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004254/0.2349, allocations: 275.1 kB / 404.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.2349, allocations: 0 / 404.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009037/0.2358, allocations: 171.8 kB / 404.2 MB, free: 1.438 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.0002447/0.236, allocations: 119.3 kB / 404.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002742/0.2388, allocations: 0.8799 MB / 405.2 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.2388, allocations: 0 / 405.2 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00161/0.2404, allocations: 0.5412 MB / 405.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005783/0.241, allocations: 81.45 kB / 405.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003814/0.2449, allocations: 1.16 MB / 407 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007041/0.2456, allocations: 0.8239 MB / 407.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000266/0.2459, allocations: 43.27 kB / 407.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.246, allocations: 31.44 kB / 407.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of SimCode: time 9.92e-07/0.246, allocations: 0 / 407.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of Templates: time 0.02786/0.2739, allocations: 13.26 MB / 421.2 MB, free: 384 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)