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.00646/0.00646, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001275/0.001275, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.558/1.558, allocations: 205.1 MB / 222.5 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.001117/0.001117, allocations: 59.34 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1227, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004527/0.1273, allocations: 2.878 MB / 376 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001323/0.1286, allocations: 0.7641 MB / 376.8 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.1288, allocations: 8 kB / 376.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.129, allocations: 47.5 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001873/0.1291, allocations: 99.11 kB / 377 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002828/0.1294, allocations: 111.8 kB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004694/0.1299, allocations: 406.2 kB / 377.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003088/0.1302, allocations: 135.2 kB / 377.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002052/0.1304, allocations: 155.4 kB / 377.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002459/0.1307, allocations: 167.3 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.672e-05/0.1308, allocations: 36 kB / 378 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.121e-05/0.1308, allocations: 36 kB / 378 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.1309, allocations: 75.7 kB / 378.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.1311, allocations: 175.2 kB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004509/0.1316, allocations: 438.5 kB / 378.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1316, allocations: 0 / 378.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1316, allocations: 0 / 378.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1316, allocations: 3.938 kB / 378.7 MB, free: 11.79 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001138/0.1328, allocations: 0.609 MB / 379.3 MB, free: 11.13 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.1328, allocations: 12.03 kB / 379.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.044e-05/0.1329, allocations: 32.56 kB / 379.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005433/0.1335, allocations: 291.5 kB / 379.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.1335, allocations: 16.94 kB / 379.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.576e-05/0.1335, allocations: 28.38 kB / 379.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.1341, allocations: 300.8 kB / 379.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1341, allocations: 0 / 379.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.1341, allocations: 12 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.1341, allocations: 4 kB / 380 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003889/0.1345, allocations: 202.2 kB / 380.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.1363, allocations: 1.14 MB / 381.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005091/0.1368, allocations: 222.6 kB / 381.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003222/0.1372, allocations: 140.8 kB / 381.6 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.1372, allocations: 7.984 kB / 381.7 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003139/0.1375, allocations: 166.7 kB / 381.8 MB, free: 8.414 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.343e-06/0.1375, allocations: 0 / 381.8 MB, free: 8.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001453/0.139, allocations: 0.5184 MB / 382.3 MB, free: 7.867 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.934e-05/0.1391, allocations: 136.5 kB / 382.5 MB, free: 7.703 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002559/0.1394, allocations: 241 kB / 382.7 MB, free: 7.457 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.1394, allocations: 33.7 kB / 382.7 MB, free: 7.418 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.1396, allocations: 164.5 kB / 382.9 MB, free: 7.254 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.78e-05/0.1396, allocations: 71 kB / 383 MB, free: 7.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.171e-05/0.1397, allocations: 53.64 kB / 383 MB, free: 7.125 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1399, allocations: 334.8 kB / 383.3 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.14, allocations: 75.97 kB / 383.4 MB, free: 6.715 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.1402, allocations: 121.1 kB / 383.5 MB, free: 6.578 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002977/0.1406, allocations: 171.3 kB / 383.7 MB, free: 6.398 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1406, allocations: 0 / 383.7 MB, free: 6.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004973/0.1411, allocations: 286 kB / 384 MB, free: 6.109 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1411, allocations: 8 kB / 384 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.1411, allocations: 3.984 kB / 384 MB, free: 6.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003465/0.1415, allocations: 96.84 kB / 384.1 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.1416, allocations: 27.92 kB / 384.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00242/0.144, allocations: 2.138 MB / 386.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.1443, allocations: 31.89 kB / 386.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.1443, allocations: 4 kB / 386.3 MB, free: 3.66 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * 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 (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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001794/0.1445, allocations: 153.8 kB / 386.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.722e-05/0.1445, allocations: 31.64 kB / 386.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.035e-05/0.1446, allocations: 34.12 kB / 386.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1446, allocations: 4 kB / 386.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.1446, allocations: 0 / 386.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.1446, allocations: 3.984 kB / 386.5 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009699/0.1456, allocations: 0.7773 MB / 387.3 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.1456, allocations: 0 / 387.3 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.1457, allocations: 23.98 kB / 387.3 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002482/0.146, allocations: 96.78 kB / 387.4 MB, free: 2.469 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/0.146, allocations: 4 kB / 387.4 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00213/0.1482, allocations: 2.135 MB / 389.6 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1482, allocations: 3.938 kB / 389.6 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000752/0.1489, allocations: 457.6 kB / 390 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.1491, allocations: 124.7 kB / 390.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.413e-05/0.1491, allocations: 8 kB / 390.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.1493, allocations: 11.98 kB / 390.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.1494, allocations: 35.95 kB / 390.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.1494, allocations: 4 kB / 390.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001676/0.1496, allocations: 176.5 kB / 390.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1496, allocations: 64 / 390.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004462/0.1501, allocations: 95.84 kB / 390.4 MB, free: 15.25 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.idealThyristor1.off,idealTriac.idealThyristor.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 (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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001556/0.1502, allocations: 111.3 kB / 390.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007464/0.151, allocations: 362.5 kB / 390.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.151, allocations: 0 / 390.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003934/0.1514, allocations: 266.6 kB / 391.2 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004258/0.1518, allocations: 56.38 kB / 391.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.153, allocations: 0.5945 MB / 391.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.1534, allocations: 0.7636 MB / 392.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.472e-05/0.1535, allocations: 22.3 kB / 392.6 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.495e-05/0.1535, allocations: 15.44 kB / 392.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1535, allocations: 0 / 392.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of Templates: time 0.009629/0.1632, allocations: 5.061 MB / 397.7 MB, free: 7.914 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (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)