Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009319/0.0009319, allocations: 178.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.109/1.109, allocations: 194.5 MB / 211.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00162/0.00162, allocations: 114.7 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002976/0.0002976, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07721/0.07752, allocations: 44.49 MB / 355.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2088/0.2864, allocations: 73.2 MB / 428.3 MB, free: 16.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001839/0.2866, allocations: 75.2 kB / 428.3 MB, free: 16.25 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01074/0.2974, allocations: 4.908 MB / 433.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2974, allocations: 0 / 433.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.79e-05/0.2974, allocations: 12 kB / 433.2 MB, free: 12.11 MB / 314.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.0007542/0.2982, allocations: 0.5928 MB / 433.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.2982, allocations: 16.03 kB / 433.9 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.797e-05/0.2983, allocations: 34.66 kB / 433.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.2986, allocations: 268.7 kB / 434.1 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.2986, allocations: 23.86 kB / 434.2 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.449e-05/0.2986, allocations: 23.81 kB / 434.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000434/0.2991, allocations: 257.7 kB / 434.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.2991, allocations: 4 kB / 434.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.731e-05/0.2991, allocations: 11.25 kB / 434.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.2991, allocations: 8 kB / 434.5 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004008/0.2996, allocations: 226.2 kB / 434.7 MB, free: 10.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.3009, allocations: 0.9894 MB / 435.7 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003804/0.3013, allocations: 223.4 kB / 435.9 MB, free: 9.746 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.3013, allocations: 4.938 kB / 435.9 MB, free: 9.742 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.528e-05/0.3013, allocations: 33.81 kB / 435.9 MB, free: 9.703 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.3013, allocations: 0 / 435.9 MB, free: 9.703 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001032/0.3024, allocations: 0.5873 MB / 436.5 MB, free: 9.148 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.886e-05/0.3024, allocations: 55.41 kB / 436.6 MB, free: 9.082 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.3026, allocations: 242.6 kB / 436.8 MB, free: 8.883 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.3026, allocations: 28.89 kB / 436.8 MB, free: 8.852 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.466e-05/0.3027, allocations: 179 kB / 437 MB, free: 8.703 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.406e-05/0.3027, allocations: 71.41 kB / 437.1 MB, free: 8.645 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.618e-06/0.3027, allocations: 2.812 kB / 437.1 MB, free: 8.645 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.961e-05/0.3028, allocations: 342.5 kB / 437.4 MB, free: 8.312 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.303, allocations: 84.05 kB / 437.5 MB, free: 8.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.3031, allocations: 115.6 kB / 437.6 MB, free: 8.156 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.3033, allocations: 100.9 kB / 437.7 MB, free: 8.094 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3033, allocations: 0 / 437.7 MB, free: 8.094 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005114/0.3039, allocations: 341.4 kB / 438.1 MB, free: 7.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.3039, allocations: 4 kB / 438.1 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3039, allocations: 4 kB / 438.1 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002228/0.3041, allocations: 77.61 kB / 438.1 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.3043, allocations: 35.97 kB / 438.2 MB, free: 7.711 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/0.3059, allocations: 2.856 MB / 441 MB, free: 4.816 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.306, allocations: 30.8 kB / 441.1 MB, free: 4.789 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.3061, allocations: 11.56 kB / 441.1 MB, free: 4.781 MB / 314.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 () * Number of clocked 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.0001095/0.3062, allocations: 151.5 kB / 441.2 MB, free: 4.641 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.583e-05/0.3062, allocations: 23.72 kB / 441.2 MB, free: 4.617 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.489e-05/0.3063, allocations: 24.12 kB / 441.3 MB, free: 4.605 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.3063, allocations: 4 kB / 441.3 MB, free: 4.602 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.3063, allocations: 4.547 kB / 441.3 MB, free: 4.598 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.3063, allocations: 4 kB / 441.3 MB, free: 4.594 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000286/0.3066, allocations: 341.8 kB / 441.6 MB, free: 4.273 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3066, allocations: 0 / 441.6 MB, free: 4.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.3068, allocations: 31.98 kB / 441.6 MB, free: 4.242 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001664/0.3069, allocations: 77.12 kB / 441.7 MB, free: 4.176 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.307, allocations: 8.516 kB / 441.7 MB, free: 4.172 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001426/0.3084, allocations: 2.846 MB / 444.6 MB, free: 1.281 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3084, allocations: 0 / 444.6 MB, free: 1.281 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004851/0.3089, allocations: 392.5 kB / 445 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.594e-05/0.309, allocations: 112.7 kB / 445.1 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.507e-05/0.309, allocations: 0 / 445.1 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.3092, allocations: 35.16 kB / 445.1 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.146e-05/0.3093, allocations: 23.84 kB / 445.1 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.3093, allocations: 10.69 kB / 445.1 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001409/0.3095, allocations: 181.6 kB / 445.3 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3095, allocations: 0 / 445.3 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003443/0.3098, allocations: 93.84 kB / 445.4 MB, free: 0.5273 MB / 314.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 () * Number of clocked 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.0001014/0.3099, allocations: 106.6 kB / 445.5 MB, free: 424 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006943/0.3106, allocations: 468.7 kB / 446 MB, free: 15.99 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3106, allocations: 4.125 kB / 446 MB, free: 15.99 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004494/0.3111, allocations: 358 kB / 446.3 MB, free: 15.65 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.3114, allocations: 59.08 kB / 446.4 MB, free: 15.62 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008319/0.3123, allocations: 0.5908 MB / 447 MB, free: 15.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003646/0.3126, allocations: 0.7755 MB / 447.7 MB, free: 14.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.3128, allocations: 18.3 kB / 447.8 MB, free: 14.22 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.074e-05/0.3128, allocations: 19.44 kB / 447.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3128, allocations: 0 / 447.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of Templates: time 0.006596/0.3194, allocations: 3.28 MB / 451.1 MB, free: 10.99 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1)