Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001407/0.001407, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.001332/0.001332, allocations: 188 kB / 18 MB, free: 5.219 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.528/1.528, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.00131/0.00131, allocations: 55.92 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1031, allocations: 46.61 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004659/0.1078, allocations: 2.959 MB / 377.4 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.1096, allocations: 0.7252 MB / 378.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003942/0.1101, allocations: 4 kB / 378.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003311/0.1104, allocations: 59.44 kB / 378.2 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004503/0.1109, allocations: 98.98 kB / 378.3 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004895/0.1114, allocations: 95.86 kB / 378.4 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007272/0.1122, allocations: 414 kB / 378.8 MB, free: 208 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003012/0.1125, allocations: 111.1 kB / 378.9 MB, free: 96 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2044/0.3169, allocations: 144.1 kB / 379.1 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002787/0.3172, allocations: 159.7 kB / 379.2 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.363e-05/0.3173, allocations: 32.62 kB / 379.3 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.553e-05/0.3173, allocations: 32.31 kB / 379.3 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.3174, allocations: 76.86 kB / 379.4 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.3176, allocations: 174.5 kB / 379.5 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004208/0.318, allocations: 388 kB / 379.9 MB, free: 9.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.318, allocations: 0 / 379.9 MB, free: 9.738 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.318, allocations: 5.438 kB / 379.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.318, allocations: 0 / 379.9 MB, free: 9.734 MB / 318.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.0009282/0.319, allocations: 0.6312 MB / 380.6 MB, free: 9.281 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.319, allocations: 13.48 kB / 380.6 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.174e-05/0.3191, allocations: 37.97 kB / 380.6 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003861/0.3195, allocations: 288.1 kB / 380.9 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.3195, allocations: 21.19 kB / 380.9 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.673e-05/0.3196, allocations: 25.66 kB / 380.9 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000482/0.3201, allocations: 256.6 kB / 381.2 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.3201, allocations: 5.312 kB / 381.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.3201, allocations: 13.5 kB / 381.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.3201, allocations: 11.84 kB / 381.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005415/0.3207, allocations: 211.8 kB / 381.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.3224, allocations: 0.9633 MB / 382.4 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005018/0.3229, allocations: 299.2 kB / 382.7 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002316/0.3231, allocations: 111.6 kB / 382.8 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.972e-05/0.3231, allocations: 3.062 kB / 382.8 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.846e-05/0.3232, allocations: 32.42 kB / 382.8 MB, free: 8.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.563e-06/0.3232, allocations: 0 / 382.8 MB, free: 8.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001269/0.3244, allocations: 0.5557 MB / 383.4 MB, free: 8.148 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.3245, allocations: 61.69 kB / 383.4 MB, free: 8.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.3247, allocations: 259.8 kB / 383.7 MB, free: 7.977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.3248, allocations: 30.3 kB / 383.7 MB, free: 7.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.669e-05/0.3249, allocations: 182.8 kB / 383.9 MB, free: 7.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.442e-05/0.3249, allocations: 71.09 kB / 384 MB, free: 7.777 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.178e-05/0.325, allocations: 50.41 kB / 384 MB, free: 7.758 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.012e-05/0.325, allocations: 334 kB / 384.3 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001949/0.3252, allocations: 76.2 kB / 384.4 MB, free: 7.445 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.3255, allocations: 108.9 kB / 384.5 MB, free: 7.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003605/0.3258, allocations: 195.3 kB / 384.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3258, allocations: 0 / 384.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006232/0.3265, allocations: 326.9 kB / 385 MB, free: 7.293 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.3265, allocations: 5.125 kB / 385 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3265, allocations: 3.594 kB / 385 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002993/0.3268, allocations: 80.27 kB / 385.1 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001966/0.327, allocations: 38.27 kB / 385.2 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.3289, allocations: 3.046 MB / 388.2 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.3292, allocations: 32.03 kB / 388.2 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.3292, allocations: 6.5 kB / 388.2 MB, free: 4.293 MB / 318.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.0001549/0.3294, allocations: 138.2 kB / 388.4 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.985e-05/0.3294, allocations: 28.81 kB / 388.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.315e-05/0.3295, allocations: 28.02 kB / 388.4 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3295, allocations: 3.031 kB / 388.4 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.679e-06/0.3295, allocations: 5.375 kB / 388.4 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/0.3295, allocations: 0.7031 kB / 388.4 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.3307, allocations: 0.6873 MB / 389.1 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.3308, allocations: 4.75 kB / 389.1 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.3309, allocations: 25.52 kB / 389.2 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002151/0.3311, allocations: 78.38 kB / 389.2 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.3311, allocations: 1.625 kB / 389.2 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.3329, allocations: 3.04 MB / 392.3 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3329, allocations: 0 / 392.3 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000612/0.3335, allocations: 391.5 kB / 392.7 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.174e-05/0.3336, allocations: 105.7 kB / 392.8 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.3336, allocations: 1.922 kB / 392.8 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002537/0.3339, allocations: 38.92 kB / 392.8 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.344e-05/0.334, allocations: 18.64 kB / 392.8 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.334, allocations: 5.766 kB / 392.8 MB, free: 320 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001851/0.3342, allocations: 191 kB / 393 MB, free: 204 kB / 318.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3342, allocations: 0 / 393 MB, free: 204 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004609/0.3347, allocations: 90.81 kB / 393.1 MB, free: 188 kB / 318.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.0001539/0.3348, allocations: 109.5 kB / 393.2 MB, free: 88 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009324/0.3358, allocations: 449.4 kB / 393.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3358, allocations: 5.25 kB / 393.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000466/0.3363, allocations: 349.8 kB / 394 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000392/0.3367, allocations: 46.52 kB / 394 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009384/0.3376, allocations: 0.4922 MB / 394.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.338, allocations: 0.7666 MB / 395.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001222/0.3381, allocations: 21.84 kB / 395.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.486e-05/0.3382, allocations: 19.19 kB / 395.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3382, allocations: 0 / 395.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Templates: time 0.009342/0.3475, allocations: 3.751 MB / 399.1 MB, free: 14.21 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1)