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.001224/0.001224, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00165/0.00165, allocations: 190.8 kB / 16.25 MB, free: 6.621 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.537/1.537, allocations: 205.1 MB / 222.1 MB, free: 4.684 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.001205/0.001205, allocations: 47.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2624, allocations: 46.63 MB / 324.8 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003888/0.2663, allocations: 3.005 MB / 327.9 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.2675, allocations: 0.7165 MB / 328.6 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.2677, allocations: 5.469 kB / 328.6 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001891/0.2679, allocations: 40.44 kB / 328.6 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001648/0.2681, allocations: 90.83 kB / 328.7 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.2683, allocations: 75.77 kB / 328.8 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000414/0.2688, allocations: 410.3 kB / 329.2 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002479/0.269, allocations: 109.7 kB / 329.3 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.2692, allocations: 147.2 kB / 329.4 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.2694, allocations: 162.8 kB / 329.6 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.882e-05/0.2695, allocations: 31.78 kB / 329.6 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.035e-05/0.2696, allocations: 31.66 kB / 329.7 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.876e-05/0.2697, allocations: 76.44 kB / 329.7 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000181/0.2699, allocations: 180.6 kB / 329.9 MB, free: 14.09 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004314/0.2703, allocations: 386.4 kB / 330.3 MB, free: 13.81 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.2703, allocations: 0 / 330.3 MB, free: 13.81 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2703, allocations: 0 / 330.3 MB, free: 13.81 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.2703, allocations: 0 / 330.3 MB, free: 13.81 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.001065/0.2714, allocations: 0.63 MB / 330.9 MB, free: 13.26 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.2715, allocations: 12.64 kB / 330.9 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.574e-05/0.2715, allocations: 40.25 kB / 331 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003376/0.2719, allocations: 274.9 kB / 331.2 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.2719, allocations: 19.53 kB / 331.2 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.686e-05/0.272, allocations: 29.94 kB / 331.3 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005327/0.2725, allocations: 255.8 kB / 331.5 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.2725, allocations: 0 / 331.5 MB, free: 12.79 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.501e-05/0.2726, allocations: 19.36 kB / 331.5 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.2726, allocations: 10.72 kB / 331.6 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005146/0.2731, allocations: 218.6 kB / 331.8 MB, free: 12.67 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.2748, allocations: 0.9754 MB / 332.7 MB, free: 11.88 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005232/0.2753, allocations: 299.6 kB / 333 MB, free: 11.66 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002217/0.2756, allocations: 105.9 kB / 333.1 MB, free: 11.59 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.2756, allocations: 4 kB / 333.1 MB, free: 11.59 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.646e-05/0.2757, allocations: 42.55 kB / 333.2 MB, free: 11.54 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.2757, allocations: 0 / 333.2 MB, free: 11.54 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001242/0.2769, allocations: 0.5558 MB / 333.7 MB, free: 10.93 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.277, allocations: 55.41 kB / 333.8 MB, free: 10.87 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002545/0.2773, allocations: 258.6 kB / 334 MB, free: 10.61 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.2773, allocations: 33.7 kB / 334.1 MB, free: 10.57 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.2774, allocations: 179.9 kB / 334.3 MB, free: 10.38 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.824e-05/0.2775, allocations: 71 kB / 334.3 MB, free: 10.31 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.991e-05/0.2776, allocations: 49.84 kB / 334.4 MB, free: 10.26 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.2777, allocations: 338.8 kB / 334.7 MB, free: 9.918 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.2779, allocations: 72.42 kB / 334.8 MB, free: 9.848 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.2781, allocations: 112.1 kB / 334.9 MB, free: 9.73 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003485/0.2784, allocations: 190.3 kB / 335.1 MB, free: 9.535 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2784, allocations: 0 / 335.1 MB, free: 9.535 MB / 270.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006531/0.2791, allocations: 334.7 kB / 335.4 MB, free: 9.195 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.2791, allocations: 4 kB / 335.4 MB, free: 9.191 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.2791, allocations: 0 / 335.4 MB, free: 9.191 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000261/0.2794, allocations: 69.67 kB / 335.5 MB, free: 9.117 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.2796, allocations: 43.91 kB / 335.5 MB, free: 9.074 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002391/0.282, allocations: 3.051 MB / 338.6 MB, free: 5.742 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.2822, allocations: 23.86 kB / 338.6 MB, free: 5.719 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.2822, allocations: 8 kB / 338.6 MB, free: 5.711 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.0002079/0.2824, allocations: 133.8 kB / 338.7 MB, free: 5.57 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.664e-05/0.2825, allocations: 31.64 kB / 338.8 MB, free: 5.539 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.672e-05/0.2825, allocations: 34.25 kB / 338.8 MB, free: 5.508 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2825, allocations: 0 / 338.8 MB, free: 5.508 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.2826, allocations: 4 kB / 338.8 MB, free: 5.504 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2826, allocations: 3.984 kB / 338.8 MB, free: 5.5 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.2836, allocations: 0.6839 MB / 339.5 MB, free: 4.754 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2836, allocations: 3.938 kB / 339.5 MB, free: 4.75 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.2838, allocations: 27.97 kB / 339.5 MB, free: 4.723 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001704/0.2839, allocations: 73.61 kB / 339.6 MB, free: 4.645 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.284, allocations: 4 kB / 339.6 MB, free: 4.641 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002168/0.2861, allocations: 3.044 MB / 342.6 MB, free: 1.32 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2861, allocations: 0 / 342.6 MB, free: 1.32 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005559/0.2867, allocations: 388.8 kB / 343 MB, free: 0.918 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.425e-05/0.2868, allocations: 104.8 kB / 343.1 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.2868, allocations: 4 kB / 343.1 MB, free: 0.793 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.2871, allocations: 31.97 kB / 343.2 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.333e-05/0.2871, allocations: 15.98 kB / 343.2 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.2872, allocations: 11.92 kB / 343.2 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001577/0.2873, allocations: 190 kB / 343.4 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2873, allocations: 0 / 343.4 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004241/0.2878, allocations: 99.75 kB / 343.5 MB, free: 460 kB / 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.0001431/0.2879, allocations: 103.2 kB / 343.6 MB, free: 344 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007866/0.2887, allocations: 445.2 kB / 344 MB, free: 15.88 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.2887, allocations: 4 kB / 344 MB, free: 15.87 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004003/0.2891, allocations: 349.1 kB / 344.3 MB, free: 15.5 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004459/0.2896, allocations: 52.53 kB / 344.4 MB, free: 15.45 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008926/0.2905, allocations: 0.6034 MB / 345 MB, free: 14.82 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.2909, allocations: 0.7639 MB / 345.8 MB, free: 14.03 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.291, allocations: 26.28 kB / 345.8 MB, free: 14.01 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.076e-05/0.291, allocations: 19.44 kB / 345.8 MB, free: 13.99 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.291, allocations: 0 / 345.8 MB, free: 13.99 MB / 286.1 MB Notification: Performance of Templates: time 0.007065/0.2981, allocations: 3.633 MB / 349.4 MB, free: 10.36 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)