Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001145/0.001146, allocations: 106.5 kB / 17.06 MB, free: 6.016 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.001051/0.001051, allocations: 195 kB / 18 MB, free: 5.094 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.554/1.554, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.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.001246/0.001246, allocations: 55.94 kB / 327.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1293, allocations: 46.61 MB / 374.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004686/0.134, allocations: 2.878 MB / 377.4 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.1356, allocations: 0.7796 MB / 378.1 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.1358, allocations: 7.938 kB / 378.1 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001761/0.136, allocations: 47.5 kB / 378.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001975/0.1362, allocations: 99.12 kB / 378.3 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004269/0.1366, allocations: 99.83 kB / 378.4 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005514/0.1372, allocations: 418.1 kB / 378.8 MB, free: 248 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003272/0.1375, allocations: 127.2 kB / 378.9 MB, free: 116 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2684/0.4059, allocations: 146.2 kB / 379.1 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005649/0.4066, allocations: 160.8 kB / 379.2 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001473/0.4067, allocations: 35.94 kB / 379.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.068e-05/0.4068, allocations: 36.88 kB / 379.3 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.407, allocations: 82.95 kB / 379.4 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003156/0.4073, allocations: 176.1 kB / 379.5 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009587/0.4083, allocations: 434.9 kB / 380 MB, free: 9.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.648e-06/0.4083, allocations: 0 / 380 MB, free: 9.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4083, allocations: 1.375 kB / 380 MB, free: 9.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.4083, allocations: 0 / 380 MB, free: 9.766 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.001438/0.4098, allocations: 0.6204 MB / 380.6 MB, free: 9.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.4098, allocations: 8.25 kB / 380.6 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.659e-05/0.4099, allocations: 34.44 kB / 380.6 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005276/0.4105, allocations: 289.2 kB / 380.9 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.4105, allocations: 23.91 kB / 380.9 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.924e-05/0.4106, allocations: 25.25 kB / 381 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006457/0.4112, allocations: 289.5 kB / 381.2 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.4112, allocations: 3.938 kB / 381.2 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.457e-05/0.4113, allocations: 13.19 kB / 381.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.4113, allocations: 6.875 kB / 381.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004741/0.4118, allocations: 203.8 kB / 381.5 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.4141, allocations: 1.144 MB / 382.6 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007421/0.4148, allocations: 222.1 kB / 382.8 MB, free: 8.406 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004341/0.4153, allocations: 138.1 kB / 383 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.4153, allocations: 6.906 kB / 383 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004039/0.4157, allocations: 168.5 kB / 383.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.485e-06/0.4157, allocations: 1.125 kB / 383.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.00161/0.4173, allocations: 0.5169 MB / 383.7 MB, free: 8.156 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.4174, allocations: 132.2 kB / 383.8 MB, free: 8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000295/0.4177, allocations: 246.6 kB / 384 MB, free: 7.895 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.4178, allocations: 32.56 kB / 384.1 MB, free: 7.863 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.4179, allocations: 162.3 kB / 384.2 MB, free: 7.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.366e-05/0.418, allocations: 68.83 kB / 384.3 MB, free: 7.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.989e-05/0.4181, allocations: 52.39 kB / 384.3 MB, free: 7.688 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.932e-05/0.4182, allocations: 337.4 kB / 384.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001543/0.4183, allocations: 71.92 kB / 384.7 MB, free: 7.359 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.4185, allocations: 122.3 kB / 384.8 MB, free: 7.281 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/0.4188, allocations: 171.1 kB / 385 MB, free: 7.184 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.4188, allocations: 1.531 kB / 385 MB, free: 7.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000506/0.4193, allocations: 288.8 kB / 385.3 MB, free: 7.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.4194, allocations: 10.94 kB / 385.3 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4194, allocations: 3.188 kB / 385.3 MB, free: 7.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003893/0.4198, allocations: 95.42 kB / 385.4 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.4199, allocations: 32.3 kB / 385.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/0.4221, allocations: 2.142 MB / 387.6 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.4223, allocations: 28.61 kB / 387.6 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.4224, allocations: 11.12 kB / 387.6 MB, free: 5.137 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.0001518/0.4225, allocations: 153 kB / 387.8 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.609e-05/0.4226, allocations: 28.28 kB / 387.8 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.208e-05/0.4227, allocations: 30.92 kB / 387.8 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.4227, allocations: 3.188 kB / 387.8 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4227, allocations: 1.094 kB / 387.8 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.4227, allocations: 1.359 kB / 387.8 MB, free: 4.957 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.4237, allocations: 0.7768 MB / 388.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.4237, allocations: 0 / 388.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.4238, allocations: 22.41 kB / 388.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002681/0.4241, allocations: 90.08 kB / 388.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.128e-05/0.4241, allocations: 7.938 kB / 388.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002077/0.4262, allocations: 2.141 MB / 390.9 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4262, allocations: 2 kB / 390.9 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006874/0.4269, allocations: 451.5 kB / 391.3 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.4271, allocations: 125.5 kB / 391.4 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.4271, allocations: 12.25 kB / 391.4 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.4273, allocations: 14.09 kB / 391.5 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.4275, allocations: 33.59 kB / 391.5 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.4275, allocations: 14.73 kB / 391.5 MB, free: 2.082 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002431/0.4278, allocations: 175.6 kB / 391.7 MB, free: 1.973 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4278, allocations: 0 / 391.7 MB, free: 1.973 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005718/0.4283, allocations: 88.53 kB / 391.8 MB, free: 1.957 MB / 318.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.0001928/0.4285, allocations: 110.3 kB / 391.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009049/0.4295, allocations: 356.6 kB / 392.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4295, allocations: 96 / 392.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004991/0.43, allocations: 273.2 kB / 392.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005443/0.4305, allocations: 65.55 kB / 392.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.4321, allocations: 0.5941 MB / 393.1 MB, free: 1.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.4325, allocations: 0.7645 MB / 393.9 MB, free: 400 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001064/0.4326, allocations: 16.86 kB / 393.9 MB, free: 400 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.973e-05/0.4327, allocations: 22.78 kB / 393.9 MB, free: 388 kB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4327, allocations: 1.188 kB / 393.9 MB, free: 388 kB / 318.1 MB Notification: Performance of Templates: time 0.01152/0.4442, allocations: 5.058 MB / 399 MB, free: 15.68 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)