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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009743/0.0009744, allocations: 189.7 kB / 8.139 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.122/1.122, allocations: 221.4 MB / 229.9 MB, free: 3.098 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008842/0.0008841, allocations: 100.2 kB / 280.8 MB, free: 1.34 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09754/0.09845, allocations: 55.82 MB / 336.6 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1946/0.2931, allocations: 50.39 MB / 387 MB, free: 38.1 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08856/0.3817, allocations: 82.24 MB / 469.2 MB, free: 4.676 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.3819, allocations: 75.89 kB / 469.3 MB, free: 4.602 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.02911/0.4111, allocations: 9.969 MB / 479.3 MB, free: 10.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.4111, allocations: 8 kB / 479.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.4113, allocations: 59.34 kB / 479.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006123/0.4119, allocations: 401 kB / 479.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.022e-05/0.4119, allocations: 12.56 kB / 479.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.063e-05/0.412, allocations: 20 kB / 479.8 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007436/0.4128, allocations: 385.5 kB / 480.2 MB, free: 9.676 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007274/0.4135, allocations: 428.7 kB / 480.6 MB, free: 9.234 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.4135, allocations: 0 / 480.6 MB, free: 9.234 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.596e-05/0.4136, allocations: 3.984 kB / 480.6 MB, free: 9.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.4136, allocations: 16.47 kB / 480.6 MB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.4175, allocations: 2.139 MB / 482.7 MB, free: 6.988 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004382/0.4179, allocations: 250.7 kB / 483 MB, free: 6.738 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004047/0.4183, allocations: 253.9 kB / 483.2 MB, free: 6.484 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.137e-05/0.4184, allocations: 8.328 kB / 483.2 MB, free: 6.477 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004464/0.4188, allocations: 283.2 kB / 483.5 MB, free: 6.184 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.254e-06/0.4189, allocations: 3.938 kB / 483.5 MB, free: 6.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001248/0.4201, allocations: 0.5328 MB / 484 MB, free: 5.637 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.4202, allocations: 89.09 kB / 484.1 MB, free: 5.531 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003805/0.4206, allocations: 316.9 kB / 484.4 MB, free: 5.219 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.583e-05/0.4206, allocations: 25.7 kB / 484.5 MB, free: 5.188 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.4207, allocations: 180.5 kB / 484.6 MB, free: 5.004 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.4209, allocations: 126.1 kB / 484.8 MB, free: 4.879 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.07e-05/0.4209, allocations: 0 / 484.8 MB, free: 4.879 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.421, allocations: 358.8 kB / 485.1 MB, free: 4.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003034/0.4214, allocations: 160.8 kB / 485.3 MB, free: 4.359 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000329/0.4217, allocations: 205.9 kB / 485.5 MB, free: 4.148 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002883/0.422, allocations: 158 kB / 485.6 MB, free: 3.996 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.422, allocations: 0 / 485.6 MB, free: 3.996 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001146/0.4231, allocations: 0.545 MB / 486.2 MB, free: 3.441 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.4232, allocations: 7.906 kB / 486.2 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.4232, allocations: 0 / 486.2 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009452/0.4241, allocations: 344.5 kB / 486.5 MB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005411/0.4247, allocations: 111.9 kB / 486.6 MB, free: 2.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007219/0.4319, allocations: 2.837 MB / 489.5 MB, free: 32 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007882/0.4327, allocations: 119.7 kB / 489.6 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.69e-05/0.4328, allocations: 11.94 kB / 489.6 MB, free: 15.9 MB / 378.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.000202/0.433, allocations: 114.4 kB / 489.7 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.786e-05/0.4331, allocations: 55.42 kB / 489.8 MB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001183/0.4332, allocations: 40.38 kB / 489.8 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.4332, allocations: 4 kB / 489.8 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.4332, allocations: 4 kB / 489.8 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.4332, allocations: 0 / 489.8 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006024/0.4338, allocations: 0.5487 MB / 490.4 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.4339, allocations: 0 / 490.4 MB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005531/0.4344, allocations: 111.8 kB / 490.5 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008351/0.4353, allocations: 332.6 kB / 490.8 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.337e-05/0.4353, allocations: 4 kB / 490.8 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007064/0.4424, allocations: 2.846 MB / 493.6 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.4424, allocations: 0 / 493.6 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001557/0.444, allocations: 0.8367 MB / 494.5 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002055/0.446, allocations: 1.471 MB / 495.9 MB, free: 9.348 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002275/0.4463, allocations: 172.6 kB / 496.1 MB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.217e-05/0.4464, allocations: 7.906 kB / 496.1 MB, free: 9.152 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000715/0.4471, allocations: 99.91 kB / 496.2 MB, free: 9.055 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.4472, allocations: 39.94 kB / 496.3 MB, free: 9.016 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.702e-05/0.4473, allocations: 12 kB / 496.3 MB, free: 9.004 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000267/0.4476, allocations: 255.2 kB / 496.5 MB, free: 8.758 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00105/0.4486, allocations: 163.8 kB / 496.7 MB, free: 8.598 MB / 378.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.0001778/0.4488, allocations: 116.9 kB / 496.8 MB, free: 8.477 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.4501, allocations: 0.5782 MB / 497.4 MB, free: 7.883 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4501, allocations: 0 / 497.4 MB, free: 7.883 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009031/0.451, allocations: 389.4 kB / 497.8 MB, free: 7.492 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003277/0.4514, allocations: 59.98 kB / 497.8 MB, free: 7.434 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002779/0.4542, allocations: 0.9374 MB / 498.7 MB, free: 6.469 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005304/0.4547, allocations: 0.8779 MB / 499.6 MB, free: 5.562 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4547, allocations: 0 / 499.6 MB, free: 5.562 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)