Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [: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.1+maint.om/package.mo): time 0.003313/0.003312, allocations: 174.8 kB / 7.45 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.31/1.31, allocations: 170.6 MB / 178.4 MB, free: 15.44 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001759/0.00176, allocations: 111.9 kB / 217.7 MB, free: 8.219 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.094e-05/1.097e-05, allocations: 4 kB / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0934/0.09342, allocations: 38.76 MB / 300.5 MB, free: 3.898 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3077/0.4012, allocations: 67.25 MB / 367.7 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000304/0.4016, allocations: 71.45 kB / 367.8 MB, free: 1.215 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.0139/0.4155, allocations: 4.721 MB / 372.5 MB, free: 13.24 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.113e-05/0.4156, allocations: 12 kB / 372.5 MB, free: 13.23 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001065/0.4166, allocations: 0.5617 MB / 373.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.4167, allocations: 12.03 kB / 373.1 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/0.4169, allocations: 39.53 kB / 373.2 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005122/0.4174, allocations: 271.8 kB / 373.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.4175, allocations: 11.98 kB / 373.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.842e-05/0.4175, allocations: 16 kB / 373.5 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003777/0.4179, allocations: 165.7 kB / 373.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003868/0.4183, allocations: 194.8 kB / 373.8 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.4183, allocations: 0 / 373.8 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/0.4184, allocations: 0 / 373.8 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.4184, allocations: 8 kB / 373.8 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.4203, allocations: 0.9333 MB / 374.7 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004121/0.4208, allocations: 171.7 kB / 374.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002385/0.421, allocations: 100.1 kB / 375 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.4211, allocations: 0.9375 kB / 375 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.624e-05/0.4211, allocations: 42.16 kB / 375.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 3.717e-06/0.4212, allocations: 4 kB / 375.1 MB, free: 10.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006747/0.4218, allocations: 223.4 kB / 375.3 MB, free: 10.76 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.4219, allocations: 63.25 kB / 375.3 MB, free: 10.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.4222, allocations: 201.4 kB / 375.5 MB, free: 10.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.4222, allocations: 25.7 kB / 375.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.4224, allocations: 172.3 kB / 375.7 MB, free: 10.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.178e-05/0.4225, allocations: 73 kB / 375.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.03e-05/0.4225, allocations: 0 / 375.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002067/0.4227, allocations: 332.7 kB / 376.1 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.4228, allocations: 50.91 kB / 376.2 MB, free: 9.895 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.423, allocations: 81.2 kB / 376.3 MB, free: 9.832 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001476/0.4231, allocations: 68.72 kB / 376.3 MB, free: 9.789 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4231, allocations: 4 kB / 376.3 MB, free: 9.785 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005156/0.4236, allocations: 254.2 kB / 376.6 MB, free: 9.578 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.4237, allocations: 4 kB / 376.6 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.4237, allocations: 4 kB / 376.6 MB, free: 9.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003611/0.4241, allocations: 68.5 kB / 376.6 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.4243, allocations: 47.91 kB / 376.7 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00284/0.4272, allocations: 2.705 MB / 379.4 MB, free: 6.699 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.4274, allocations: 19.84 kB / 379.4 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.4275, allocations: 11.11 kB / 379.4 MB, free: 6.672 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001683/0.4277, allocations: 112.9 kB / 379.5 MB, free: 6.555 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.711e-05/0.4278, allocations: 27.78 kB / 379.6 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.567e-05/0.4278, allocations: 24.72 kB / 379.6 MB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.066e-06/0.4278, allocations: 7.984 kB / 379.6 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.4279, allocations: 0 / 379.6 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.453e-06/0.4279, allocations: 0 / 379.6 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/0.4291, allocations: 0.5699 MB / 380.2 MB, free: 5.988 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.4291, allocations: 4 kB / 380.2 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001535/0.4293, allocations: 31.97 kB / 380.2 MB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002193/0.4295, allocations: 69.19 kB / 380.3 MB, free: 5.895 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.4296, allocations: 7.984 kB / 380.3 MB, free: 5.887 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002425/0.432, allocations: 2.687 MB / 383 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.432, allocations: 0 / 383 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004892/0.4325, allocations: 328.6 kB / 383.3 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.4327, allocations: 122.5 kB / 383.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.29e-05/0.4327, allocations: 0 / 383.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003394/0.4331, allocations: 40.16 kB / 383.4 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.681e-05/0.4332, allocations: 7.984 kB / 383.5 MB, free: 2.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.4332, allocations: 15.94 kB / 383.5 MB, free: 2.641 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.0001698/0.4334, allocations: 160.4 kB / 383.6 MB, free: 2.508 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004884/0.4339, allocations: 83.75 kB / 383.7 MB, free: 2.426 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001735/0.434, allocations: 99.25 kB / 383.8 MB, free: 2.316 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007064/0.4348, allocations: 363.2 kB / 384.2 MB, free: 1.992 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4348, allocations: 0 / 384.2 MB, free: 1.992 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004318/0.4352, allocations: 299.2 kB / 384.5 MB, free: 1.711 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.4355, allocations: 27.36 kB / 384.5 MB, free: 1.691 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000959/0.4365, allocations: 308.3 kB / 384.8 MB, free: 1.406 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000595/0.4371, allocations: 0.7865 MB / 385.6 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.4371, allocations: 4 kB / 385.6 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of Templates: time 0.008134/0.4453, allocations: 3.152 MB / 388.7 MB, free: 13.45 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1)