Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 188.7 kB / 16.13 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.1 MB / 222 MB, free: 4.734 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 55.92 kB / 278 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2733, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005802/0.2792, allocations: 3.016 MB / 327.7 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001687/0.2809, allocations: 0.7115 MB / 328.4 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005367/0.2815, allocations: 9.875 kB / 328.4 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.282, allocations: 37.09 kB / 328.4 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004762/0.2825, allocations: 93.94 kB / 328.5 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003859/0.2828, allocations: 72.55 kB / 328.6 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005044/0.2834, allocations: 401.5 kB / 329 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002762/0.2836, allocations: 87.62 kB / 329.1 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002622/0.2839, allocations: 139.8 kB / 329.2 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.2841, allocations: 155 kB / 329.4 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.153e-05/0.2842, allocations: 20.28 kB / 329.4 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.118e-05/0.2843, allocations: 20.56 kB / 329.4 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.222e-05/0.2844, allocations: 64.03 kB / 329.5 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000264/0.2846, allocations: 161.2 kB / 329.6 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004777/0.2851, allocations: 372.3 kB / 330 MB, free: 13.88 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.2851, allocations: 4 kB / 330 MB, free: 13.88 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2851, allocations: 0 / 330 MB, free: 13.88 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.2852, allocations: 1.219 kB / 330 MB, free: 13.88 MB / 270.1 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.001144/0.2863, allocations: 0.6294 MB / 330.6 MB, free: 13.33 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.2864, allocations: 8.812 kB / 330.6 MB, free: 13.33 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.073e-05/0.2865, allocations: 39.22 kB / 330.7 MB, free: 13.31 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003566/0.2868, allocations: 278.8 kB / 330.9 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.86e-05/0.2869, allocations: 20.75 kB / 331 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.639e-05/0.2869, allocations: 24.5 kB / 331 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000549/0.2875, allocations: 264.7 kB / 331.3 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.2875, allocations: 0 / 331.3 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.2875, allocations: 11.31 kB / 331.3 MB, free: 12.85 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.2876, allocations: 11.47 kB / 331.3 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004985/0.2881, allocations: 214.3 kB / 331.5 MB, free: 12.75 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001785/0.2899, allocations: 0.9754 MB / 332.5 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006015/0.2905, allocations: 295.9 kB / 332.7 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002845/0.2908, allocations: 111.4 kB / 332.9 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.2908, allocations: 2.5 kB / 332.9 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.416e-05/0.2909, allocations: 44.81 kB / 332.9 MB, free: 11.64 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.773e-06/0.2909, allocations: 0 / 332.9 MB, free: 11.64 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001318/0.2922, allocations: 0.5624 MB / 333.5 MB, free: 11.1 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.272e-05/0.2923, allocations: 55.41 kB / 333.5 MB, free: 11.03 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.2925, allocations: 262.6 kB / 333.8 MB, free: 10.76 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.2926, allocations: 25.7 kB / 333.8 MB, free: 10.73 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.2927, allocations: 183.9 kB / 334 MB, free: 10.54 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.302e-05/0.2927, allocations: 67.02 kB / 334 MB, free: 10.48 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.912e-05/0.2928, allocations: 49.84 kB / 334.1 MB, free: 10.42 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.293, allocations: 334.8 kB / 334.4 MB, free: 10.09 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.2932, allocations: 80.42 kB / 334.5 MB, free: 10.01 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.2934, allocations: 112.1 kB / 334.6 MB, free: 9.891 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004125/0.2938, allocations: 194.3 kB / 334.8 MB, free: 9.691 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2938, allocations: 4 kB / 334.8 MB, free: 9.688 MB / 270.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000643/0.2945, allocations: 318.8 kB / 335.1 MB, free: 9.363 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.2945, allocations: 8 kB / 335.1 MB, free: 9.355 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.2945, allocations: 0 / 335.1 MB, free: 9.355 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003473/0.2949, allocations: 77.67 kB / 335.2 MB, free: 9.273 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.2951, allocations: 39.91 kB / 335.2 MB, free: 9.234 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/0.2978, allocations: 2.831 MB / 338.1 MB, free: 6.141 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.2981, allocations: 23.73 kB / 338.1 MB, free: 6.117 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.2981, allocations: 8 kB / 338.1 MB, free: 6.109 MB / 270.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001883/0.2983, allocations: 141.8 kB / 338.2 MB, free: 5.961 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.297e-05/0.2984, allocations: 27.72 kB / 338.3 MB, free: 5.934 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.362e-05/0.2984, allocations: 30.17 kB / 338.3 MB, free: 5.906 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.2984, allocations: 4 kB / 338.3 MB, free: 5.902 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.2985, allocations: 3.938 kB / 338.3 MB, free: 5.898 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2985, allocations: 0 / 338.3 MB, free: 5.898 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.2997, allocations: 0.6832 MB / 339 MB, free: 5.152 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2997, allocations: 0 / 339 MB, free: 5.152 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.2998, allocations: 27.98 kB / 339 MB, free: 5.125 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001986/0.3, allocations: 77.59 kB / 339.1 MB, free: 5.043 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.3001, allocations: 8 kB / 339.1 MB, free: 5.035 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002162/0.3022, allocations: 2.819 MB / 341.9 MB, free: 1.953 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.3022, allocations: 4.125 kB / 341.9 MB, free: 1.949 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006628/0.3029, allocations: 385.5 kB / 342.3 MB, free: 1.551 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.303, allocations: 108.7 kB / 342.4 MB, free: 1.426 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.885e-05/0.3031, allocations: 8 kB / 342.4 MB, free: 1.418 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.3034, allocations: 27.98 kB / 342.4 MB, free: 1.391 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.3035, allocations: 23.91 kB / 342.5 MB, free: 1.367 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.611e-05/0.3035, allocations: 4 kB / 342.5 MB, free: 1.363 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002176/0.3037, allocations: 190 kB / 342.6 MB, free: 1.176 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3037, allocations: 4 kB / 342.7 MB, free: 1.172 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004692/0.3042, allocations: 91.84 kB / 342.7 MB, free: 1.082 MB / 270.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001818/0.3044, allocations: 103.2 kB / 342.8 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0008432/0.3052, allocations: 449.3 kB / 343.3 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.3053, allocations: 0 / 343.3 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004447/0.3057, allocations: 349.1 kB / 343.6 MB, free: 140 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004665/0.3062, allocations: 60.47 kB / 343.7 MB, free: 80 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.3072, allocations: 0.6011 MB / 344.3 MB, free: 15.45 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.3076, allocations: 0.7639 MB / 345 MB, free: 14.66 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001373/0.3077, allocations: 26.28 kB / 345.1 MB, free: 14.64 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.544e-05/0.3078, allocations: 19.44 kB / 345.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3078, allocations: 0 / 345.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of Templates: time 0.00854/0.3163, allocations: 3.454 MB / 348.5 MB, free: 11.17 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1)