Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001058/0.001058, allocations: 195.4 kB / 8.54 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.146/1.146, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008743/0.0008744, allocations: 91.98 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09188/0.09278, allocations: 56.91 MB / 343.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08231/0.1751, allocations: 51.47 MB / 394.7 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2197/0.3949, allocations: 83.02 MB / 477.7 MB, free: 9.945 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001765/0.3951, allocations: 66.42 kB / 477.8 MB, free: 9.922 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.02567/0.4208, allocations: 10.05 MB / 487.9 MB, free: 1.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.4208, allocations: 8 kB / 487.9 MB, free: 1.566 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001982/0.421, allocations: 71.33 kB / 487.9 MB, free: 1.496 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.4215, allocations: 403.7 kB / 488.3 MB, free: 1.129 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.4215, allocations: 12 kB / 488.3 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.59e-05/0.4216, allocations: 24 kB / 488.4 MB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006651/0.4222, allocations: 388.7 kB / 488.7 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00062/0.4229, allocations: 424.4 kB / 489.2 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.4229, allocations: 0 / 489.2 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.6e-05/0.4229, allocations: 7.906 kB / 489.2 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.423, allocations: 8 kB / 489.2 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003525/0.4265, allocations: 2.148 MB / 491.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003982/0.4269, allocations: 246.1 kB / 491.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003758/0.4273, allocations: 253.4 kB / 491.8 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.754e-05/0.4273, allocations: 8.312 kB / 491.8 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004326/0.4278, allocations: 291.6 kB / 492.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.633e-06/0.4278, allocations: 0 / 492.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001171/0.429, allocations: 0.526 MB / 492.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.429, allocations: 81.11 kB / 492.7 MB, free: 13.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003331/0.4294, allocations: 321.5 kB / 493 MB, free: 13.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.371e-05/0.4294, allocations: 25.7 kB / 493 MB, free: 13.53 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.4295, allocations: 182.3 kB / 493.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.4296, allocations: 128.1 kB / 493.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.092e-05/0.4297, allocations: 0 / 493.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4298, allocations: 355.5 kB / 493.7 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002878/0.4301, allocations: 166.4 kB / 493.9 MB, free: 12.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/0.4304, allocations: 204.3 kB / 494.1 MB, free: 12.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002675/0.4307, allocations: 161.5 kB / 494.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.4307, allocations: 4 kB / 494.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001089/0.4318, allocations: 0.5419 MB / 494.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.4318, allocations: 8 kB / 494.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.4319, allocations: 0 / 494.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008784/0.4327, allocations: 334 kB / 495.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005379/0.4333, allocations: 111.9 kB / 495.2 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007268/0.4406, allocations: 2.852 MB / 498.1 MB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007943/0.4414, allocations: 119.8 kB / 498.2 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.154e-05/0.4414, allocations: 11.25 kB / 498.2 MB, free: 9.375 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleTriac.thyristor.vGK:VARIABLE(unit = "V" ) "Voltage between gate and cathode" type: Real 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.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.count) * Number of discrete 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.0001756/0.4416, allocations: 115.8 kB / 498.3 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.69e-05/0.4417, allocations: 48.06 kB / 498.3 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001347/0.4419, allocations: 47.67 kB / 498.4 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.4419, allocations: 4 kB / 498.4 MB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.4419, allocations: 4 kB / 498.4 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.4419, allocations: 0 / 498.4 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006623/0.4426, allocations: 0.5511 MB / 498.9 MB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.4426, allocations: 0 / 498.9 MB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005346/0.4431, allocations: 111.2 kB / 499.1 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008272/0.4439, allocations: 341.2 kB / 499.4 MB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.718e-05/0.444, allocations: 4 kB / 499.4 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007152/0.4512, allocations: 2.836 MB / 0.4905 GB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.4512, allocations: 0 / 0.4905 GB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001579/0.4528, allocations: 0.8345 MB / 0.4913 GB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002185/0.455, allocations: 1.47 MB / 0.4927 GB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002258/0.4552, allocations: 176.4 kB / 0.4929 GB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.89e-05/0.4553, allocations: 8 kB / 0.4929 GB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007294/0.4561, allocations: 99.91 kB / 0.493 GB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.4562, allocations: 35.94 kB / 0.493 GB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.843e-05/0.4562, allocations: 15.98 kB / 0.493 GB, free: 3.973 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002798/0.4565, allocations: 251.2 kB / 0.4933 GB, free: 3.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001111/0.4576, allocations: 163.7 kB / 0.4934 GB, free: 3.57 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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * 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 (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.0001712/0.4578, allocations: 118.4 kB / 0.4935 GB, free: 3.449 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001341/0.4592, allocations: 0.5851 MB / 0.4941 GB, free: 2.852 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4592, allocations: 0 / 0.4941 GB, free: 2.852 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008995/0.4601, allocations: 394.9 kB / 0.4945 GB, free: 2.457 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.4604, allocations: 54.69 kB / 0.4945 GB, free: 2.406 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.4632, allocations: 0.9293 MB / 0.4954 GB, free: 1.445 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005231/0.4637, allocations: 0.8701 MB / 0.4963 GB, free: 0.5469 MB / 362.7 MB Notification: Performance of SimCode: time 1.703e-06/0.4637, allocations: 0 / 0.4963 GB, free: 0.5469 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)