Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001565/0.001569, allocations: 184.8 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.916/1.916, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001197/0.001197, allocations: 100.4 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004034/0.0004035, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3407, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.4711, allocations: 80.42 MB / 455 MB, free: 356 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.4714, allocations: 67.97 kB / 455 MB, free: 288 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04381/0.5153, allocations: 8.568 MB / 463.6 MB, free: 7.668 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5153, allocations: 0 / 463.6 MB, free: 7.668 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.391e-05/0.5154, allocations: 16 kB / 463.6 MB, free: 7.652 MB / 346.7 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.003519/0.5189, allocations: 0.8992 MB / 464.5 MB, free: 6.699 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.519, allocations: 11.97 kB / 464.5 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002039/0.5192, allocations: 59.25 kB / 464.6 MB, free: 6.629 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007591/0.52, allocations: 389 kB / 465 MB, free: 6.207 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.618e-05/0.52, allocations: 36.95 kB / 465 MB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.5202, allocations: 39.98 kB / 465 MB, free: 6.133 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002329/0.5225, allocations: 0.5826 MB / 465.6 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/0.5226, allocations: 7.938 kB / 465.6 MB, free: 5.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.615e-05/0.5227, allocations: 19.98 kB / 465.6 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.5227, allocations: 12 kB / 465.7 MB, free: 5.488 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003299/0.526, allocations: 0.6363 MB / 466.3 MB, free: 4.855 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005881/0.5319, allocations: 2.049 MB / 468.3 MB, free: 2.711 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007877/0.5399, allocations: 0.9637 MB / 469.3 MB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.182e-05/0.54, allocations: 7.984 kB / 469.3 MB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001936/0.542, allocations: 431.7 kB / 469.7 MB, free: 1.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 3.517e-06/0.542, allocations: 4 kB / 469.7 MB, free: 1.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.01708/0.5591, allocations: 1.968 MB / 471.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.883e-05/0.5592, allocations: 93 kB / 471.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006394/0.5598, allocations: 336.9 kB / 472.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.064e-05/0.5599, allocations: 29.7 kB / 472.2 MB, free: 14.81 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002093/0.5602, allocations: 271.1 kB / 472.4 MB, free: 14.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001743/0.5604, allocations: 130.1 kB / 472.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.366e-05/0.5604, allocations: 8 kB / 472.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.5606, allocations: 322.8 kB / 472.9 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.5622, allocations: 304.6 kB / 473.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001713/0.5639, allocations: 354.1 kB / 473.5 MB, free: 13.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/0.5656, allocations: 319.5 kB / 473.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.5657, allocations: 0 / 473.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004522/0.5702, allocations: 0.8901 MB / 474.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.407e-05/0.5703, allocations: 35.09 kB / 474.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.5704, allocations: 4 kB / 474.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002228/0.5726, allocations: 423.3 kB / 475.2 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000882/0.5735, allocations: 91.92 kB / 475.3 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01624/0.5898, allocations: 3.611 MB / 478.9 MB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/0.5911, allocations: 107.6 kB / 479 MB, free: 7.805 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.516e-05/0.5912, allocations: 12 kB / 479 MB, free: 7.793 MB / 362.7 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.0003819/0.5916, allocations: 172.9 kB / 479.2 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.5917, allocations: 51.38 kB / 479.2 MB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/0.5919, allocations: 60.36 kB / 479.3 MB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.5919, allocations: 4 kB / 479.3 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5919, allocations: 0 / 479.3 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.592, allocations: 0 / 479.3 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009895/0.593, allocations: 0.5833 MB / 479.8 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.593, allocations: 0 / 479.8 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008343/0.5938, allocations: 91.92 kB / 479.9 MB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/0.5959, allocations: 420.5 kB / 480.3 MB, free: 6.367 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.57e-05/0.596, allocations: 11.94 kB / 480.4 MB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01601/0.612, allocations: 3.604 MB / 484 MB, free: 2.617 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.6121, allocations: 4 kB / 484 MB, free: 2.613 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006583/0.6187, allocations: 1.27 MB / 485.2 MB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004074/0.6192, allocations: 180.5 kB / 485.4 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001345/0.6193, allocations: 11.95 kB / 485.4 MB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.6205, allocations: 87.92 kB / 485.5 MB, free: 1.027 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002252/0.6207, allocations: 43.92 kB / 485.6 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.784e-05/0.6208, allocations: 12 kB / 485.6 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005053/0.6213, allocations: 275.1 kB / 485.8 MB, free: 0.707 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6213, allocations: 0 / 485.8 MB, free: 0.707 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008995/0.6222, allocations: 179.8 kB / 486 MB, free: 0.5312 MB / 362.7 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.0002432/0.6225, allocations: 111.4 kB / 486.1 MB, free: 424 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004543/0.627, allocations: 0.9423 MB / 487.1 MB, free: 15.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.6271, allocations: 0 / 487.1 MB, free: 15.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002783/0.6299, allocations: 0.5764 MB / 487.6 MB, free: 14.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007032/0.6306, allocations: 67.02 kB / 487.7 MB, free: 14.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005567/0.6362, allocations: 1.426 MB / 489.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005354/0.6368, allocations: 0.8358 MB / 490 MB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002719/0.6371, allocations: 35.42 kB / 490 MB, free: 12.45 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6371, allocations: 0 / 490 MB, free: 12.45 MB / 378.7 MB Notification: Performance of Templates: time 0.02001/0.6571, allocations: 8.509 MB / 498.5 MB, free: 3.949 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)