Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001096/0.001096, allocations: 84.38 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.001296/0.001296, 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.857/1.857, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.0005059/0.0005059, allocations: 18.8 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3961, allocations: 47.58 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003577/0.3997, allocations: 2.454 MB / 328.9 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.4018, allocations: 0.7302 MB / 329.7 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002969/0.4021, allocations: 8.781 kB / 329.7 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002254/0.4024, allocations: 39.69 kB / 329.7 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002321/0.4026, allocations: 78.88 kB / 329.8 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003716/0.403, allocations: 69.56 kB / 329.8 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005172/0.4035, allocations: 371.1 kB / 330.2 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002779/0.4038, allocations: 99 kB / 330.3 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002254/0.404, allocations: 120.3 kB / 330.4 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/0.4043, allocations: 135.7 kB / 330.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.097e-05/0.4044, allocations: 16.03 kB / 330.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.139e-05/0.4044, allocations: 19.16 kB / 330.6 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.313e-05/0.4045, allocations: 55.84 kB / 330.6 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.4046, allocations: 88.23 kB / 330.7 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000378/0.405, allocations: 313.9 kB / 331 MB, free: 13.92 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.143e-05/0.405, allocations: 0 / 331 MB, free: 13.92 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.147e-06/0.4051, allocations: 1.156 kB / 331 MB, free: 13.92 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.4051, allocations: 0 / 331 MB, free: 13.92 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001231/0.4063, allocations: 0.5721 MB / 331.6 MB, free: 13.41 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/0.4064, allocations: 9 kB / 331.6 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.4065, allocations: 36.73 kB / 331.7 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004118/0.4069, allocations: 269.2 kB / 331.9 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.134e-05/0.407, allocations: 31.08 kB / 331.9 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.46e-05/0.407, allocations: 24.78 kB / 332 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007142/0.4078, allocations: 283.8 kB / 332.2 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.4078, allocations: 0 / 332.2 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.201e-05/0.4079, allocations: 11.34 kB / 332.3 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.618e-05/0.4079, allocations: 6.75 kB / 332.3 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006108/0.4085, allocations: 212.2 kB / 332.5 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002431/0.411, allocations: 1.173 MB / 333.6 MB, free: 11.78 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006518/0.4116, allocations: 224.9 kB / 333.9 MB, free: 11.65 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003569/0.412, allocations: 148.9 kB / 334 MB, free: 11.58 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.137e-05/0.412, allocations: 3.375 kB / 334 MB, free: 11.58 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004122/0.4125, allocations: 170.2 kB / 334.2 MB, free: 11.44 MB / 270.1 MB Notification: Performance of pre-optimization done (n=22): time 2.435e-06/0.4125, allocations: 0 / 334.2 MB, free: 11.44 MB / 270.1 MB Notification: Performance of matching and sorting (n=22): time 0.001553/0.414, allocations: 0.5215 MB / 334.7 MB, free: 11 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001397/0.4142, allocations: 136.5 kB / 334.8 MB, free: 10.84 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003614/0.4146, allocations: 237 kB / 335.1 MB, free: 10.59 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/0.4146, allocations: 33.7 kB / 335.1 MB, free: 10.55 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002106/0.4148, allocations: 160.5 kB / 335.3 MB, free: 10.39 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.588e-05/0.4149, allocations: 71 kB / 335.3 MB, free: 10.32 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.671e-05/0.415, allocations: 11.94 kB / 335.3 MB, free: 10.31 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002322/0.4152, allocations: 330.8 kB / 335.7 MB, free: 9.98 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.4154, allocations: 75.97 kB / 335.7 MB, free: 9.906 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.4156, allocations: 121.1 kB / 335.9 MB, free: 9.77 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.4158, allocations: 83.97 kB / 335.9 MB, free: 9.688 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4158, allocations: 0 / 335.9 MB, free: 9.688 MB / 270.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005823/0.4164, allocations: 294 kB / 336.2 MB, free: 9.391 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.4164, allocations: 7.953 kB / 336.2 MB, free: 9.383 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.4164, allocations: 4 kB / 336.2 MB, free: 9.379 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004694/0.4169, allocations: 84.91 kB / 336.3 MB, free: 9.293 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001674/0.4171, allocations: 31.92 kB / 336.3 MB, free: 9.262 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003081/0.4202, allocations: 1.936 MB / 338.3 MB, free: 7.191 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003352/0.4206, allocations: 47.84 kB / 338.3 MB, free: 7.145 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.4206, allocations: 8 kB / 338.3 MB, free: 7.137 MB / 270.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,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * 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 (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 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003093/0.4209, allocations: 150.4 kB / 338.5 MB, free: 6.98 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.523e-05/0.421, allocations: 23.72 kB / 338.5 MB, free: 6.957 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.769e-05/0.4211, allocations: 34.17 kB / 338.5 MB, free: 6.922 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.4211, allocations: 0 / 338.5 MB, free: 6.922 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.4211, allocations: 0 / 338.5 MB, free: 6.922 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.4211, allocations: 4 kB / 338.5 MB, free: 6.918 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001403/0.4225, allocations: 0.7693 MB / 339.3 MB, free: 6.086 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/0.4225, allocations: 4 kB / 339.3 MB, free: 6.082 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001436/0.4227, allocations: 19.98 kB / 339.3 MB, free: 6.062 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000291/0.423, allocations: 84.86 kB / 339.4 MB, free: 5.977 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.423, allocations: 12.02 kB / 339.4 MB, free: 5.965 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002526/0.4256, allocations: 1.936 MB / 341.4 MB, free: 3.898 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4256, allocations: 0 / 341.4 MB, free: 3.898 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009404/0.4265, allocations: 464.9 kB / 341.8 MB, free: 3.422 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001813/0.4267, allocations: 128.8 kB / 342 MB, free: 3.277 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.194e-05/0.4268, allocations: 7.953 kB / 342 MB, free: 3.27 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.427, allocations: 19.98 kB / 342 MB, free: 3.25 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.4272, allocations: 40 kB / 342 MB, free: 3.211 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.4272, allocations: 7.984 kB / 342 MB, free: 3.203 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002013/0.4274, allocations: 172.5 kB / 342.2 MB, free: 3.035 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4274, allocations: 0 / 342.2 MB, free: 3.035 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0006366/0.428, allocations: 95.84 kB / 342.3 MB, free: 2.941 MB / 270.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 (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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001814/0.4282, allocations: 103.3 kB / 342.4 MB, free: 2.828 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007917/0.429, allocations: 358.4 kB / 342.7 MB, free: 2.465 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.429, allocations: 0 / 342.7 MB, free: 2.465 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004474/0.4295, allocations: 266.7 kB / 343 MB, free: 2.191 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004782/0.43, allocations: 52.34 kB / 343 MB, free: 2.141 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.4316, allocations: 0.7162 MB / 343.8 MB, free: 1.398 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.4321, allocations: 0.7712 MB / 344.5 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001503/0.4322, allocations: 30.27 kB / 344.6 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.315e-05/0.4323, allocations: 15.44 kB / 344.6 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of SimCode: time 2.805e-06/0.4323, allocations: 0 / 344.6 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of Templates: time 0.009917/0.4422, allocations: 4.267 MB / 348.8 MB, free: 12.29 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)