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.001065/0.001066, allocations: 90.67 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.008813/0.008813, allocations: 172.6 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.588/1.588, allocations: 205.4 MB / 222.4 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.0004356/0.0004356, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2611, allocations: 47.58 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002604/0.2638, allocations: 2.637 MB / 329.7 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.2648, allocations: 0.7221 MB / 330.4 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.2649, allocations: 5.344 kB / 330.4 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.2651, allocations: 35.94 kB / 330.4 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000164/0.2653, allocations: 94.78 kB / 330.5 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.2655, allocations: 72.42 kB / 330.6 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004217/0.2659, allocations: 394.4 kB / 331 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002118/0.2661, allocations: 87.61 kB / 331.1 MB, free: 14.25 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002165/0.2664, allocations: 136.5 kB / 331.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.2666, allocations: 146.7 kB / 331.3 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.001e-05/0.2666, allocations: 17.53 kB / 331.3 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.352e-05/0.2667, allocations: 17.09 kB / 331.4 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.193e-05/0.2667, allocations: 51.77 kB / 331.4 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.2669, allocations: 188.8 kB / 331.6 MB, free: 13.9 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003032/0.2672, allocations: 360.6 kB / 332 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2672, allocations: 0.875 kB / 332 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2672, allocations: 0 / 332 MB, free: 13.64 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.2672, 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.0008684/0.2681, allocations: 0.5948 MB / 332.5 MB, free: 13.12 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.2681, allocations: 9.406 kB / 332.6 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.902e-05/0.2682, allocations: 36.66 kB / 332.6 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.2685, allocations: 274.1 kB / 332.9 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.2685, allocations: 23.59 kB / 332.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.841e-05/0.2686, allocations: 29.38 kB / 332.9 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005093/0.2691, allocations: 271.7 kB / 333.2 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.2691, allocations: 0 / 333.2 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.374e-05/0.2692, allocations: 15.5 kB / 333.2 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.2692, allocations: 7.156 kB / 333.2 MB, free: 12.63 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000493/0.2697, allocations: 231.6 kB / 333.4 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.2713, allocations: 0.9839 MB / 334.4 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005141/0.2718, allocations: 310.2 kB / 334.7 MB, free: 11.46 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002273/0.272, allocations: 112.8 kB / 334.8 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.676e-05/0.2721, allocations: 0 / 334.8 MB, free: 11.35 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.2721, allocations: 38.56 kB / 334.9 MB, free: 11.3 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 2.445e-06/0.2721, allocations: 4 kB / 334.9 MB, free: 11.3 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001271/0.2734, allocations: 0.5832 MB / 335.4 MB, free: 10.67 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.2734, allocations: 63.34 kB / 335.5 MB, free: 10.59 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002429/0.2737, allocations: 262.6 kB / 335.8 MB, free: 10.32 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.2737, allocations: 29.7 kB / 335.8 MB, free: 10.29 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.2738, allocations: 183.9 kB / 336 MB, free: 10.1 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.797e-05/0.2739, allocations: 74.84 kB / 336 MB, free: 10.03 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.274, allocations: 29.7 kB / 336.1 MB, free: 9.992 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.2741, allocations: 330.8 kB / 336.4 MB, free: 9.66 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.2743, allocations: 84.42 kB / 336.5 MB, free: 9.578 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.2745, allocations: 120.1 kB / 336.6 MB, free: 9.453 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003964/0.2749, allocations: 210.3 kB / 336.8 MB, free: 9.238 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2749, allocations: 0 / 336.8 MB, free: 9.238 MB / 270.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006266/0.2755, allocations: 338.8 kB / 337.1 MB, free: 8.895 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.2756, allocations: 8 kB / 337.1 MB, free: 8.887 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2756, allocations: 0 / 337.1 MB, free: 8.887 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002581/0.2758, allocations: 73.66 kB / 337.2 MB, free: 8.809 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.276, allocations: 43.92 kB / 337.3 MB, free: 8.766 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/0.2782, allocations: 2.831 MB / 340.1 MB, free: 5.672 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.2784, allocations: 35.8 kB / 340.1 MB, free: 5.637 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.2784, allocations: 4.25 kB / 340.1 MB, free: 5.633 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.0001321/0.2785, allocations: 141.8 kB / 340.3 MB, free: 5.484 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.986e-05/0.2786, allocations: 27.72 kB / 340.3 MB, free: 5.457 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.959e-05/0.2786, allocations: 30.17 kB / 340.3 MB, free: 5.43 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2787, allocations: 4 kB / 340.3 MB, free: 5.426 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.2787, allocations: 3.938 kB / 340.3 MB, free: 5.422 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2787, allocations: 3.984 kB / 340.3 MB, free: 5.418 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009631/0.2796, allocations: 0.6988 MB / 341 MB, free: 4.656 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.2797, allocations: 4 kB / 341 MB, free: 4.652 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.2798, allocations: 27.97 kB / 341.1 MB, free: 4.625 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001786/0.28, allocations: 81.61 kB / 341.1 MB, free: 4.539 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.28, allocations: 0 / 341.1 MB, free: 4.539 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001899/0.2819, allocations: 2.831 MB / 344 MB, free: 1.445 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2819, allocations: 4.062 kB / 344 MB, free: 1.441 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005868/0.2825, allocations: 397.5 kB / 344.4 MB, free: 1.031 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.577e-05/0.2826, allocations: 108.8 kB / 344.5 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.2826, allocations: 4 kB / 344.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002519/0.2829, allocations: 39.91 kB / 344.5 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.179e-05/0.283, allocations: 27.91 kB / 344.5 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.283, allocations: 8 kB / 344.6 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001585/0.2832, allocations: 186 kB / 344.7 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2832, allocations: 0 / 344.7 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003495/0.2835, allocations: 87.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.0001176/0.2836, allocations: 107.2 kB / 344.9 MB, free: 452 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000728/0.2844, allocations: 461.1 kB / 345.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2844, allocations: 0 / 345.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004044/0.2848, 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.0003942/0.2852, allocations: 56.41 kB / 345.8 MB, free: 15.53 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008053/0.286, allocations: 0.629 MB / 346.4 MB, free: 14.88 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.2863, allocations: 0.7639 MB / 347.2 MB, free: 14.08 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.2864, allocations: 22.27 kB / 347.2 MB, free: 14.06 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.755e-05/0.2865, allocations: 23.44 kB / 347.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2865, allocations: 0 / 347.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of Templates: time 0.00649/0.293, allocations: 3.426 MB / 350.6 MB, free: 10.62 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)