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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009437/0.0009437, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007174/0.007173, allocations: 170 kB / 16.26 MB, free: 6.613 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.664/1.664, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0007999/0.0007998, allocations: 15.98 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2696, allocations: 47.58 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002768/0.2724, allocations: 2.632 MB / 329.7 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.2736, allocations: 0.7111 MB / 330.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.2738, allocations: 5.719 kB / 330.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.2739, allocations: 41.09 kB / 330.4 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.2741, allocations: 98.42 kB / 330.5 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000262/0.2744, allocations: 71.48 kB / 330.6 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005188/0.2749, allocations: 393.9 kB / 331 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002343/0.2752, allocations: 96.47 kB / 331.1 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.2754, allocations: 128.9 kB / 331.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001943/0.2756, allocations: 142.7 kB / 331.3 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.771e-05/0.2757, allocations: 16.12 kB / 331.3 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.157e-05/0.2757, allocations: 17.06 kB / 331.4 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.16e-05/0.2758, allocations: 56.14 kB / 331.4 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001978/0.276, allocations: 185.4 kB / 331.6 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000374/0.2764, allocations: 365.4 kB / 332 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.974e-06/0.2764, allocations: 0 / 332 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2764, allocations: 7.938 kB / 332 MB, free: 13.64 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.012e-06/0.2764, allocations: 0 / 332 MB, free: 13.64 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.0009962/0.2774, allocations: 0.5911 MB / 332.5 MB, free: 13.12 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.2775, allocations: 9.219 kB / 332.6 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.2776, allocations: 35.97 kB / 332.6 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003747/0.278, allocations: 270.7 kB / 332.9 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.003e-05/0.278, allocations: 20.16 kB / 332.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.783e-05/0.2781, allocations: 29.14 kB / 332.9 MB, free: 12.81 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/0.2786, allocations: 275.2 kB / 333.2 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.2787, allocations: 0 / 333.2 MB, free: 12.65 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.324e-05/0.2787, allocations: 12.34 kB / 333.2 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.2787, allocations: 5.781 kB / 333.2 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005346/0.2793, allocations: 232.2 kB / 333.4 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.2811, allocations: 0.995 MB / 334.4 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000621/0.2817, allocations: 309.1 kB / 334.7 MB, free: 11.48 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000235/0.282, allocations: 112.8 kB / 334.8 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.282, allocations: 8 kB / 334.8 MB, free: 11.36 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.2821, allocations: 34.56 kB / 334.9 MB, free: 11.31 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 3.126e-06/0.2821, allocations: 0 / 334.9 MB, free: 11.31 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001315/0.2834, allocations: 0.591 MB / 335.5 MB, free: 10.67 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.2834, allocations: 51.41 kB / 335.5 MB, free: 10.61 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002647/0.2837, allocations: 262.6 kB / 335.8 MB, free: 10.34 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.608e-05/0.2837, allocations: 33.7 kB / 335.8 MB, free: 10.3 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.2839, allocations: 183.8 kB / 336 MB, free: 10.11 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.118e-05/0.2839, allocations: 70.91 kB / 336 MB, free: 10.04 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.985e-05/0.284, allocations: 21.72 kB / 336.1 MB, free: 10.02 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.2841, allocations: 342.8 kB / 336.4 MB, free: 9.672 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.2843, allocations: 80.42 kB / 336.5 MB, free: 9.594 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002166/0.2846, allocations: 119.4 kB / 336.6 MB, free: 9.469 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004096/0.285, allocations: 206.4 kB / 336.8 MB, free: 9.258 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.285, allocations: 3.938 kB / 336.8 MB, free: 9.254 MB / 270.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006749/0.2857, allocations: 338.8 kB / 337.1 MB, free: 8.91 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.2857, allocations: 4 kB / 337.1 MB, free: 8.906 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.2857, allocations: 0 / 337.1 MB, free: 8.906 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002819/0.286, allocations: 73.67 kB / 337.2 MB, free: 8.828 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.2862, allocations: 47.97 kB / 337.3 MB, free: 8.781 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002192/0.2884, allocations: 2.839 MB / 340.1 MB, free: 5.68 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002207/0.2886, allocations: 31.77 kB / 340.1 MB, free: 5.648 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.618e-05/0.2887, allocations: 11.94 kB / 340.1 MB, free: 5.637 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.000147/0.2888, allocations: 137.8 kB / 340.3 MB, free: 5.492 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.481e-05/0.2889, allocations: 27.72 kB / 340.3 MB, free: 5.465 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.187e-05/0.2889, allocations: 34.23 kB / 340.3 MB, free: 5.434 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.289, allocations: 0 / 340.3 MB, free: 5.434 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.289, allocations: 7.938 kB / 340.3 MB, free: 5.426 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.289, allocations: 0 / 340.3 MB, free: 5.426 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.29, allocations: 0.6988 MB / 341 MB, free: 4.664 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.29, allocations: 0 / 341 MB, free: 4.664 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.2902, allocations: 27.97 kB / 341.1 MB, free: 4.637 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001824/0.2904, allocations: 81.61 kB / 341.1 MB, free: 4.551 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.2904, allocations: 4 kB / 341.2 MB, free: 4.547 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002119/0.2925, allocations: 2.831 MB / 344 MB, free: 1.453 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2925, allocations: 0 / 344 MB, free: 1.453 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000665/0.2932, allocations: 401.6 kB / 344.4 MB, free: 1.039 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.743e-05/0.2933, allocations: 104.8 kB / 344.5 MB, free: 0.918 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.2933, allocations: 7.938 kB / 344.5 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.2936, allocations: 43.91 kB / 344.5 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.484e-05/0.2937, allocations: 23.91 kB / 344.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.2937, allocations: 4 kB / 344.6 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001644/0.2938, allocations: 190 kB / 344.7 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2939, allocations: 4 kB / 344.7 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003924/0.2943, allocations: 91.84 kB / 344.8 MB, free: 0.5586 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.0001362/0.2944, allocations: 99.25 kB / 344.9 MB, free: 460 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0008014/0.2952, allocations: 461.4 kB / 345.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.2952, allocations: 0 / 345.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004453/0.2957, allocations: 361.3 kB / 345.7 MB, free: 15.59 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.2961, allocations: 48.47 kB / 345.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009402/0.2971, allocations: 0.6368 MB / 346.4 MB, free: 14.88 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.2975, allocations: 0.76 MB / 347.2 MB, free: 14.09 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001285/0.2976, allocations: 22.3 kB / 347.2 MB, free: 14.07 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.2976, allocations: 19.42 kB / 347.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2977, allocations: 4 kB / 347.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of Templates: time 0.007028/0.3047, allocations: 3.422 MB / 350.6 MB, free: 10.63 MB / 286.1 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)