Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001219/0.001219, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001444/0.001445, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.653/1.653, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004778/0.0004779, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2677, allocations: 47.59 MB / 326.5 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003677/0.2714, allocations: 3.358 MB / 329.8 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.2733, allocations: 0.9848 MB / 330.8 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001978/0.2735, allocations: 6.281 kB / 330.8 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.2737, allocations: 61.7 kB / 330.9 MB, free: 13.85 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002692/0.274, allocations: 136.8 kB / 331 MB, free: 13.73 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000386/0.2744, allocations: 131.5 kB / 331.2 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008348/0.2752, allocations: 0.6659 MB / 331.8 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/0.2755, allocations: 133.9 kB / 331.9 MB, free: 13.13 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003607/0.2759, allocations: 241.3 kB / 332.2 MB, free: 13 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003846/0.2763, allocations: 275 kB / 332.5 MB, free: 12.82 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.535e-05/0.2763, allocations: 35.5 kB / 332.5 MB, free: 12.81 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.592e-05/0.2764, allocations: 31.97 kB / 332.5 MB, free: 12.81 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.2766, allocations: 100.2 kB / 332.6 MB, free: 12.73 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.2767, allocations: 123.9 kB / 332.7 MB, free: 12.64 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005678/0.2773, allocations: 0.6077 MB / 333.3 MB, free: 12.17 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2773, allocations: 0 / 333.3 MB, free: 12.17 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2773, allocations: 0 / 333.3 MB, free: 12.17 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.2773, allocations: 0 / 333.3 MB, free: 12.17 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.002192/0.2795, allocations: 0.9475 MB / 334.3 MB, free: 11.46 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2796, allocations: 10.12 kB / 334.3 MB, free: 11.46 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.2797, allocations: 59.5 kB / 334.4 MB, free: 11.43 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.2802, allocations: 383.5 kB / 334.7 MB, free: 11.07 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.283e-05/0.2802, allocations: 32.75 kB / 334.8 MB, free: 11.05 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.367e-05/0.2803, allocations: 35.31 kB / 334.8 MB, free: 11.04 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.2816, allocations: 0.587 MB / 335.4 MB, free: 10.44 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.2816, allocations: 4 kB / 335.4 MB, free: 10.44 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.975e-05/0.2817, allocations: 19.98 kB / 335.4 MB, free: 10.42 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.2817, allocations: 12 kB / 335.4 MB, free: 10.41 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001594/0.2833, allocations: 0.644 MB / 336.1 MB, free: 9.762 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003339/0.2867, allocations: 2.051 MB / 338.1 MB, free: 7.613 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00345/0.2901, allocations: 0.9288 MB / 339 MB, free: 6.676 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008939/0.291, allocations: 405.7 kB / 339.4 MB, free: 6.277 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.568e-05/0.2911, allocations: 7.75 kB / 339.5 MB, free: 6.27 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001014/0.2921, allocations: 439.6 kB / 339.9 MB, free: 5.824 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 1.863e-06/0.2921, allocations: 0 / 339.9 MB, free: 5.824 MB / 270.1 MB Notification: Performance of matching and sorting (n=39): time 0.008942/0.3011, allocations: 2.048 MB / 341.9 MB, free: 3.746 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.455e-05/0.3012, allocations: 85.11 kB / 342 MB, free: 3.645 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005396/0.3018, allocations: 381.6 kB / 342.4 MB, free: 3.258 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.142e-05/0.3018, allocations: 37.69 kB / 342.4 MB, free: 3.215 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.302, allocations: 220.6 kB / 342.6 MB, free: 2.992 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.3022, allocations: 134.1 kB / 342.8 MB, free: 2.859 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.099e-05/0.3022, allocations: 8 kB / 342.8 MB, free: 2.852 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.3024, allocations: 350.8 kB / 343.1 MB, free: 2.5 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008064/0.3032, allocations: 308.6 kB / 343.4 MB, free: 2.195 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000803/0.304, allocations: 342.1 kB / 343.8 MB, free: 1.852 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008082/0.3048, allocations: 319.5 kB / 344.1 MB, free: 1.535 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3049, allocations: 0 / 344.1 MB, free: 1.535 MB / 270.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004377/0.3092, allocations: 1.182 MB / 345.2 MB, free: 344 kB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.499e-05/0.3093, allocations: 41.69 kB / 345.3 MB, free: 296 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3093, allocations: 0 / 345.3 MB, free: 296 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/0.3106, allocations: 420.5 kB / 345.7 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.311, allocations: 91.86 kB / 345.8 MB, free: 15.78 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008024/0.3191, allocations: 3.502 MB / 349.3 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000736/0.3199, allocations: 111.7 kB / 349.4 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.896e-05/0.3199, allocations: 8 kB / 349.4 MB, free: 12.03 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 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002933/0.3202, allocations: 174.5 kB / 349.6 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.863e-05/0.3203, allocations: 47.39 kB / 349.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001208/0.3204, allocations: 48.38 kB / 349.7 MB, free: 11.76 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.3204, allocations: 4 kB / 349.7 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.3204, allocations: 4 kB / 349.7 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.3205, allocations: 7.984 kB / 349.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007187/0.3212, allocations: 0.5872 MB / 350.3 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.3212, allocations: 0 / 350.3 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/0.3216, allocations: 87.88 kB / 350.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001117/0.3227, allocations: 416.5 kB / 350.8 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.58e-05/0.3228, allocations: 8 kB / 350.8 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008094/0.3309, allocations: 3.482 MB / 354.3 MB, free: 6.988 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.331, allocations: 4 kB / 354.3 MB, free: 6.984 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/0.3357, allocations: 1.404 MB / 355.7 MB, free: 5.559 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004492/0.3362, allocations: 168.5 kB / 355.8 MB, free: 5.375 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001432/0.3363, allocations: 12 kB / 355.8 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005848/0.3369, allocations: 83.92 kB / 355.9 MB, free: 5.281 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/0.3371, allocations: 52.05 kB / 356 MB, free: 5.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-05/0.3372, allocations: 12 kB / 356 MB, free: 5.219 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004069/0.3376, allocations: 279.1 kB / 356.3 MB, free: 4.949 MB / 286.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.3376, allocations: 0 / 356.3 MB, free: 4.949 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007973/0.3384, allocations: 167.7 kB / 356.4 MB, free: 4.785 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001869/0.3386, allocations: 115.2 kB / 356.5 MB, free: 4.66 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002794/0.3414, allocations: 0.9429 MB / 357.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.3414, allocations: 0 / 357.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001561/0.343, allocations: 0.5659 MB / 358 MB, free: 3.113 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007039/0.3437, allocations: 81.88 kB / 358.1 MB, free: 3.031 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003296/0.347, allocations: 1.384 MB / 359.5 MB, free: 1.629 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005085/0.3476, allocations: 0.8352 MB / 360.3 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002593/0.3478, allocations: 39.28 kB / 360.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.348, allocations: 23.44 kB / 360.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of SimCode: time 1.213e-06/0.348, allocations: 0 / 360.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of Templates: time 0.02002/0.368, allocations: 11.86 MB / 372.3 MB, free: 4.828 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)