Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 183.7 kB / 8.479 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.127/1.127, allocations: 205.2 MB / 214.1 MB, free: 1.887 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008272/0.0008273, allocations: 75.41 kB / 262.1 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1396/0.1404, allocations: 52.98 MB / 315.1 MB, free: 22.95 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07147/0.2119, allocations: 47.59 MB / 362.6 MB, free: 7.309 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2072/0.4191, allocations: 79.88 MB / 442.5 MB, free: 15.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001732/0.4193, allocations: 70.58 kB / 442.6 MB, free: 15.55 MB / 330.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.02664/0.446, allocations: 9.193 MB / 451.8 MB, free: 7.648 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.446, allocations: 15.98 kB / 451.8 MB, free: 7.633 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.4462, allocations: 62.75 kB / 451.9 MB, free: 7.574 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006113/0.4468, allocations: 380.8 kB / 452.2 MB, free: 7.223 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.145e-05/0.4469, allocations: 12 kB / 452.2 MB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.422e-05/0.4469, allocations: 23.98 kB / 452.3 MB, free: 7.188 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007095/0.4477, allocations: 361.3 kB / 452.6 MB, free: 6.992 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007349/0.4484, allocations: 413 kB / 453 MB, free: 6.684 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.4484, allocations: 0 / 453 MB, free: 6.684 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.671e-05/0.4485, allocations: 0 / 453 MB, free: 6.684 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.4485, allocations: 8 kB / 453 MB, free: 6.676 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003857/0.4524, allocations: 1.995 MB / 455 MB, free: 5.051 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004049/0.4528, allocations: 241.8 kB / 455.3 MB, free: 4.906 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003633/0.4532, allocations: 244.8 kB / 455.5 MB, free: 4.762 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.65e-05/0.4532, allocations: 9.438 kB / 455.5 MB, free: 4.754 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004065/0.4536, allocations: 264.3 kB / 455.8 MB, free: 4.562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 2.655e-06/0.4537, allocations: 4 kB / 455.8 MB, free: 4.559 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.001243/0.4549, allocations: 0.5193 MB / 456.3 MB, free: 4.191 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.455, allocations: 88.8 kB / 456.4 MB, free: 4.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.4553, allocations: 305.7 kB / 456.7 MB, free: 3.848 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.807e-05/0.4554, allocations: 33.14 kB / 456.7 MB, free: 3.812 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.4555, allocations: 173.5 kB / 456.9 MB, free: 3.656 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.4556, allocations: 125.2 kB / 457 MB, free: 3.547 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.014e-05/0.4556, allocations: 0 / 457 MB, free: 3.547 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.4558, allocations: 347.9 kB / 457.3 MB, free: 3.215 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002771/0.4561, allocations: 159.9 kB / 457.5 MB, free: 3.129 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002984/0.4564, allocations: 197.8 kB / 457.7 MB, free: 3.008 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.4566, allocations: 154 kB / 457.8 MB, free: 2.922 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4566, allocations: 0 / 457.8 MB, free: 2.922 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001052/0.4577, allocations: 0.5381 MB / 458.4 MB, free: 2.547 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.4577, allocations: 4 kB / 458.4 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.4577, allocations: 0 / 458.4 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008983/0.4586, allocations: 340.2 kB / 458.7 MB, free: 2.293 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005/0.4592, allocations: 102.9 kB / 458.8 MB, free: 2.195 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006984/0.4662, allocations: 2.836 MB / 461.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007244/0.4669, allocations: 107.7 kB / 461.8 MB, free: 15.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-05/0.467, allocations: 15.88 kB / 461.8 MB, free: 15.71 MB / 346.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.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.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.0001888/0.4672, allocations: 113 kB / 461.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.296e-05/0.4673, allocations: 43.44 kB / 461.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.4674, allocations: 50.86 kB / 462 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.4674, allocations: 4 kB / 462 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.4674, allocations: 0 / 462 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.4674, allocations: 0 / 462 MB, free: 15.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006025/0.468, allocations: 0.5298 MB / 462.5 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.468, allocations: 0 / 462.5 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004799/0.4685, allocations: 91.88 kB / 462.6 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008324/0.4694, allocations: 333.2 kB / 462.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.487e-05/0.4694, allocations: 4 kB / 462.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007081/0.4765, allocations: 2.851 MB / 465.8 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4765, allocations: 0 / 465.8 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001598/0.4781, allocations: 0.8004 MB / 466.6 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001974/0.4801, allocations: 1.421 MB / 468 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002608/0.4804, allocations: 167.3 kB / 468.2 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.4805, allocations: 3.984 kB / 468.2 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006595/0.4812, allocations: 87.92 kB / 468.3 MB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/0.4813, allocations: 37.53 kB / 468.3 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.909e-05/0.4814, allocations: 10.88 kB / 468.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002585/0.4816, allocations: 239.5 kB / 468.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001088/0.4827, allocations: 158.2 kB / 468.7 MB, free: 10.21 MB / 346.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) * 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.0001918/0.4829, allocations: 115.2 kB / 468.8 MB, free: 10.09 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001304/0.4842, allocations: 0.5653 MB / 469.4 MB, free: 9.676 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4843, allocations: 0 / 469.4 MB, free: 9.676 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008768/0.4851, allocations: 389.7 kB / 469.8 MB, free: 9.383 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003654/0.4855, allocations: 55.62 kB / 469.8 MB, free: 9.344 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.4884, allocations: 0.9023 MB / 470.7 MB, free: 8.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000505/0.4889, allocations: 0.8692 MB / 471.6 MB, free: 7.602 MB / 346.7 MB Notification: Performance of SimCode: time 3.6e-07/0.4889, allocations: 0 / 471.6 MB, free: 7.602 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-12 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1)