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.001133/0.001133, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001246/0.001246, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.511/1.511, allocations: 205.4 MB / 222.1 MB, free: 5.617 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.0004865/0.0004867, allocations: 15.94 kB / 278.9 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.261, allocations: 47.59 MB / 326.5 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002801/0.2639, allocations: 2.521 MB / 329 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.2651, allocations: 0.6928 MB / 329.7 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.2652, allocations: 8.375 kB / 329.7 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.2654, allocations: 41.09 kB / 329.7 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000176/0.2656, allocations: 87.05 kB / 329.8 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002593/0.2658, allocations: 64.42 kB / 329.9 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000459/0.2663, allocations: 377 kB / 330.3 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.2665, allocations: 84.55 kB / 330.3 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002378/0.2668, allocations: 124.9 kB / 330.5 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002098/0.267, allocations: 139.2 kB / 330.6 MB, free: 14.22 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.703e-05/0.2671, allocations: 16.5 kB / 330.6 MB, free: 14.22 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.245e-05/0.2671, allocations: 17.59 kB / 330.6 MB, free: 14.22 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.491e-05/0.2672, allocations: 59.44 kB / 330.7 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.558e-05/0.2673, allocations: 86.58 kB / 330.8 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.2676, allocations: 269.4 kB / 331 MB, free: 13.92 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.2676, allocations: 4 kB / 331 MB, free: 13.91 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.2676, allocations: 1.469 kB / 331 MB, free: 13.91 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.2676, allocations: 3.938 kB / 331 MB, free: 13.91 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.001031/0.2687, allocations: 0.5969 MB / 331.6 MB, free: 13.39 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.2687, allocations: 9.625 kB / 331.7 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.777e-05/0.2688, allocations: 35 kB / 331.7 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000393/0.2692, allocations: 268.7 kB / 331.9 MB, free: 13.1 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.2693, allocations: 23.52 kB / 332 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.564e-05/0.2693, allocations: 30.19 kB / 332 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005468/0.2699, allocations: 264.2 kB / 332.3 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2699, allocations: 0 / 332.3 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.2699, allocations: 11.31 kB / 332.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.2699, allocations: 6.062 kB / 332.3 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005187/0.2705, allocations: 230.1 kB / 332.5 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.2721, allocations: 0.9919 MB / 333.5 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005263/0.2726, allocations: 309.3 kB / 333.8 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002497/0.2729, allocations: 115 kB / 333.9 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.2729, allocations: 5.75 kB / 333.9 MB, free: 11.74 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.2729, allocations: 32.66 kB / 333.9 MB, free: 11.7 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.273, allocations: 0.9375 kB / 333.9 MB, free: 11.7 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001357/0.2743, allocations: 0.5898 MB / 334.5 MB, free: 11.16 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.2744, allocations: 51.41 kB / 334.6 MB, free: 11.1 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002822/0.2747, allocations: 262.5 kB / 334.8 MB, free: 10.84 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.2747, allocations: 29.7 kB / 334.9 MB, free: 10.8 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.2748, allocations: 179.9 kB / 335 MB, free: 10.62 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.719e-05/0.2749, allocations: 71 kB / 335.1 MB, free: 10.55 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/0.2749, allocations: 7.938 kB / 335.1 MB, free: 10.54 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.2751, allocations: 338.8 kB / 335.5 MB, free: 10.2 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.2753, allocations: 84.42 kB / 335.5 MB, free: 10.12 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.2755, allocations: 116.2 kB / 335.6 MB, free: 9.996 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002011/0.2757, allocations: 99.86 kB / 335.7 MB, free: 9.898 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2757, allocations: 0 / 335.7 MB, free: 9.898 MB / 270.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006211/0.2764, allocations: 334.7 kB / 336.1 MB, free: 9.559 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.2764, allocations: 8 kB / 336.1 MB, free: 9.551 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2764, allocations: 4.062 kB / 336.1 MB, free: 9.547 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002667/0.2767, allocations: 77.64 kB / 336.2 MB, free: 9.465 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.2769, allocations: 39.98 kB / 336.2 MB, free: 9.426 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/0.2789, allocations: 2.835 MB / 339 MB, free: 6.328 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.2791, allocations: 35.8 kB / 339.1 MB, free: 6.293 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.614e-05/0.2792, allocations: 8 kB / 339.1 MB, free: 6.285 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 (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.0001439/0.2793, allocations: 145.8 kB / 339.2 MB, free: 6.133 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.97e-05/0.2794, allocations: 27.72 kB / 339.2 MB, free: 6.105 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.459e-05/0.2794, allocations: 26.17 kB / 339.3 MB, free: 6.078 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2794, allocations: 4 kB / 339.3 MB, free: 6.074 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.2794, allocations: 0 / 339.3 MB, free: 6.074 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.2795, allocations: 7.984 kB / 339.3 MB, free: 6.066 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009454/0.2804, allocations: 0.6988 MB / 340 MB, free: 5.305 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2804, allocations: 0 / 340 MB, free: 5.305 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.2806, allocations: 31.97 kB / 340 MB, free: 5.273 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/0.2807, allocations: 69.67 kB / 340.1 MB, free: 5.199 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.2808, allocations: 4 kB / 340.1 MB, free: 5.195 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.2827, allocations: 2.831 MB / 342.9 MB, free: 2.102 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2828, allocations: 3.953 kB / 342.9 MB, free: 2.098 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005621/0.2833, allocations: 389.7 kB / 343.3 MB, free: 1.695 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.53e-05/0.2834, allocations: 104.8 kB / 343.4 MB, free: 1.574 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.992e-05/0.2834, allocations: 4 kB / 343.4 MB, free: 1.57 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.2837, allocations: 39.97 kB / 343.4 MB, free: 1.531 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.613e-05/0.2838, allocations: 23.91 kB / 343.5 MB, free: 1.508 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.2838, allocations: 4 kB / 343.5 MB, free: 1.504 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001663/0.284, allocations: 193.9 kB / 343.7 MB, free: 1.316 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.284, allocations: 0 / 343.7 MB, free: 1.316 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003738/0.2843, allocations: 91.75 kB / 343.8 MB, free: 1.227 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 (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.000129/0.2845, allocations: 111.2 kB / 343.9 MB, free: 1.105 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007361/0.2852, allocations: 465.2 kB / 344.3 MB, free: 0.625 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2852, allocations: 0 / 344.3 MB, free: 0.625 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003841/0.2856, allocations: 361.3 kB / 344.7 MB, free: 252 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004313/0.2861, allocations: 48.47 kB / 344.7 MB, free: 204 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00082/0.2869, allocations: 0.5947 MB / 345.3 MB, free: 15.57 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.2872, allocations: 0.76 MB / 346.1 MB, free: 14.79 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.2873, allocations: 30.27 kB / 346.1 MB, free: 14.76 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.612e-05/0.2874, allocations: 19.38 kB / 346.1 MB, free: 14.74 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2874, allocations: 4 kB / 346.1 MB, free: 14.73 MB / 286.1 MB Notification: Performance of Templates: time 0.006475/0.2939, allocations: 3.297 MB / 349.4 MB, free: 11.44 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)