Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_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.0012/0.0012, allocations: 113.2 kB / 17.69 MB, free: 5.309 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.001135/0.001136, allocations: 191 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.601/1.601, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 47.7 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1161, allocations: 49.45 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00543/0.1216, allocations: 4.053 MB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.1235, allocations: 1.005 MB / 356.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002046/0.1237, allocations: 8 kB / 356.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002293/0.124, allocations: 87.14 kB / 356.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002869/0.1242, allocations: 174.5 kB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000453/0.1247, allocations: 219.6 kB / 357 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007493/0.1255, allocations: 0.8095 MB / 357.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003093/0.1258, allocations: 180.8 kB / 358 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003678/0.1262, allocations: 311 kB / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004401/0.1266, allocations: 362.5 kB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.1267, allocations: 80 kB / 358.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.1268, allocations: 84 kB / 358.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.127, allocations: 159.5 kB / 359 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003115/0.1273, allocations: 330.5 kB / 359.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007194/0.1281, allocations: 0.8371 MB / 360.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1281, allocations: 0 / 360.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.178e-06/0.1281, allocations: 3.984 kB / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.1281, allocations: 0 / 360.2 MB, free: 10.96 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002545/0.1306, allocations: 1.022 MB / 361.2 MB, free: 9.887 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.1307, allocations: 8.031 kB / 361.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.1308, allocations: 60.28 kB / 361.3 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005896/0.1314, allocations: 417.9 kB / 361.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.779e-05/0.1315, allocations: 29.38 kB / 361.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.841e-05/0.1315, allocations: 40.38 kB / 361.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.133, allocations: 0.5914 MB / 362.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.133, allocations: 0 / 362.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.239e-05/0.1331, allocations: 16 kB / 362.3 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1331, allocations: 15.94 kB / 362.4 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001782/0.1349, allocations: 0.6283 MB / 363 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003627/0.1385, allocations: 2.153 MB / 365.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003676/0.1422, allocations: 0.8315 MB / 366 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.1432, allocations: 396.2 kB / 366.4 MB, free: 4.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.921e-05/0.1433, allocations: 4.328 kB / 366.4 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.1444, allocations: 426.7 kB / 366.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.734e-06/0.1444, allocations: 0 / 366.8 MB, free: 4.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.01368/0.1581, allocations: 2.281 MB / 369.1 MB, free: 1.793 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.745e-05/0.1582, allocations: 93.09 kB / 369.1 MB, free: 1.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005555/0.1587, allocations: 406 kB / 369.5 MB, free: 1.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.636e-05/0.1588, allocations: 37.7 kB / 369.6 MB, free: 1.238 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.159, allocations: 240.5 kB / 369.8 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.1592, allocations: 126.1 kB / 369.9 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.1593, allocations: 74.06 kB / 370 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1595, allocations: 362.7 kB / 370.4 MB, free: 436 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008472/0.1604, allocations: 292.6 kB / 370.7 MB, free: 144 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2612/0.4216, allocations: 321.5 kB / 371 MB, free: 26.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001901/0.4235, allocations: 0.5831 MB / 371.5 MB, free: 26.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.4235, allocations: 0 / 371.5 MB, free: 26.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003821/0.4274, allocations: 0.9761 MB / 372.5 MB, free: 26.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.446e-05/0.4274, allocations: 33.84 kB / 372.6 MB, free: 26.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.4275, allocations: 2.125 kB / 372.6 MB, free: 26.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.4288, allocations: 398.1 kB / 372.9 MB, free: 26.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005481/0.4294, allocations: 90.08 kB / 373 MB, free: 26.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008622/0.438, allocations: 3.658 MB / 376.7 MB, free: 23.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000831/0.4389, allocations: 92.08 kB / 376.8 MB, free: 23.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.378e-05/0.4389, allocations: 15.19 kB / 376.8 MB, free: 23.77 MB / 302.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 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.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.0003206/0.4393, allocations: 177.8 kB / 377 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.657e-05/0.4394, allocations: 46.16 kB / 377 MB, free: 23.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001272/0.4395, allocations: 58.14 kB / 377.1 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/0.4395, allocations: 6.906 kB / 377.1 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.4395, allocations: 1.5 kB / 377.1 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.4396, allocations: 3.844 kB / 377.1 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000831/0.4404, allocations: 0.6076 MB / 377.7 MB, free: 23.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.4404, allocations: 0.6094 kB / 377.7 MB, free: 23.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005226/0.4409, allocations: 84.17 kB / 377.8 MB, free: 23.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001193/0.4421, allocations: 400 kB / 378.2 MB, free: 23.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-05/0.4422, allocations: 8.922 kB / 378.2 MB, free: 23.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007929/0.4501, allocations: 3.662 MB / 381.8 MB, free: 20.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4502, allocations: 0 / 381.8 MB, free: 20.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005826/0.456, allocations: 1.453 MB / 383.3 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002998/0.4563, allocations: 179.1 kB / 383.5 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.825e-05/0.4564, allocations: 7.016 kB / 383.5 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005893/0.457, allocations: 78.02 kB / 383.5 MB, free: 20.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.4572, allocations: 49.36 kB / 383.6 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.49e-05/0.4573, allocations: 9.812 kB / 383.6 MB, free: 20 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004019/0.4577, allocations: 290.9 kB / 383.9 MB, free: 19.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4577, allocations: 5.125 kB / 383.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007258/0.4584, allocations: 179.8 kB / 384.1 MB, free: 19.81 MB / 302.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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.0001813/0.4586, allocations: 115.5 kB / 384.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002668/0.4613, allocations: 0.9189 MB / 385.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4613, allocations: 1.375 kB / 385.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001499/0.4628, allocations: 0.5631 MB / 385.7 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004784/0.4633, allocations: 79.45 kB / 385.7 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003085/0.4664, allocations: 1.207 MB / 387 MB, free: 18.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.4667, allocations: 0.8343 MB / 387.8 MB, free: 17.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002231/0.467, allocations: 47.47 kB / 387.8 MB, free: 17.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.4671, allocations: 33.38 kB / 387.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4671, allocations: 0 / 387.9 MB, free: 17.64 MB / 302.1 MB Notification: Performance of Templates: time 0.01873/0.4858, allocations: 13.77 MB / 401.6 MB, free: 7.383 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)