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.001515/0.001515, allocations: 105.2 kB / 17.06 MB, free: 6.027 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.001683/0.001683, allocations: 195 kB / 17.99 MB, free: 5.109 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.436/1.436, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001356/0.001356, allocations: 55.92 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1017, allocations: 46.61 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005114/0.1069, allocations: 2.947 MB / 377.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.1086, allocations: 0.7252 MB / 378.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003898/0.109, allocations: 4 kB / 378.2 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.1093, allocations: 55.44 kB / 378.2 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004238/0.1098, allocations: 107 kB / 378.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003872/0.1102, allocations: 91.86 kB / 378.4 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006464/0.1108, allocations: 414 kB / 378.8 MB, free: 204 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.1111, allocations: 111.1 kB / 378.9 MB, free: 92 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2151/0.3262, allocations: 140.6 kB / 379.1 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003154/0.3265, allocations: 162.7 kB / 379.2 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.551e-05/0.3266, allocations: 31.75 kB / 379.3 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.854e-05/0.3267, allocations: 32.22 kB / 379.3 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.402e-05/0.3267, allocations: 77.16 kB / 379.4 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001718/0.3269, allocations: 176.5 kB / 379.5 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004361/0.3274, allocations: 385.2 kB / 379.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3274, allocations: 0 / 379.9 MB, free: 9.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3274, allocations: 4.5 kB / 379.9 MB, free: 9.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.3274, allocations: 2.438 kB / 379.9 MB, free: 9.73 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.0008969/0.3283, allocations: 0.6312 MB / 380.6 MB, free: 9.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.3283, allocations: 13.48 kB / 380.6 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.987e-05/0.3284, allocations: 39.62 kB / 380.6 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/0.3288, allocations: 286.4 kB / 380.9 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.3288, allocations: 22.11 kB / 380.9 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.3289, allocations: 27.97 kB / 380.9 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004843/0.3294, allocations: 254.5 kB / 381.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.3294, allocations: 6 kB / 381.2 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.3294, allocations: 13.59 kB / 381.2 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.3294, allocations: 10.34 kB / 381.2 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005093/0.3299, allocations: 215 kB / 381.4 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001688/0.3316, allocations: 0.9618 MB / 382.4 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004979/0.3321, allocations: 299.7 kB / 382.7 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002177/0.3324, allocations: 111.4 kB / 382.8 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.3324, allocations: 3.391 kB / 382.8 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.3324, allocations: 36.12 kB / 382.8 MB, free: 8.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.3324, allocations: 0 / 382.8 MB, free: 8.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001201/0.3336, allocations: 0.5541 MB / 383.4 MB, free: 8.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/0.3337, allocations: 57.66 kB / 383.4 MB, free: 8.078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000252/0.3339, allocations: 261.2 kB / 383.7 MB, free: 7.973 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.334, allocations: 32.05 kB / 383.7 MB, free: 7.941 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/0.3341, allocations: 184.5 kB / 383.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.162e-05/0.3341, allocations: 69.7 kB / 384 MB, free: 7.773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.998e-05/0.3342, allocations: 50.77 kB / 384 MB, free: 7.754 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.824e-05/0.3343, allocations: 335.6 kB / 384.3 MB, free: 7.441 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.3344, allocations: 76.27 kB / 384.4 MB, free: 7.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.3347, allocations: 108.5 kB / 384.5 MB, free: 7.414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.335, allocations: 193.5 kB / 384.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.335, allocations: 0 / 384.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005996/0.3356, allocations: 327.8 kB / 385 MB, free: 7.289 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.3357, allocations: 5.094 kB / 385 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.3357, allocations: 2.25 kB / 385 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002722/0.336, allocations: 77.48 kB / 385.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.3361, allocations: 41.19 kB / 385.2 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/0.3378, allocations: 3.042 MB / 388.2 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001947/0.3381, allocations: 31.58 kB / 388.2 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.3381, allocations: 10.16 kB / 388.2 MB, free: 4.285 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.0001054/0.3382, allocations: 141.3 kB / 388.4 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.893e-05/0.3382, allocations: 29.98 kB / 388.4 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.236e-05/0.3383, allocations: 31.27 kB / 388.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.716e-06/0.3383, allocations: 3.281 kB / 388.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.3383, allocations: 9.562 kB / 388.4 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.3383, allocations: 1.312 kB / 388.4 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009383/0.3393, allocations: 0.6818 MB / 389.1 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3393, allocations: 5.672 kB / 389.1 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.3394, allocations: 23.02 kB / 389.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000173/0.3396, allocations: 76.91 kB / 389.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.3396, allocations: 5.922 kB / 389.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00155/0.3412, allocations: 3.04 MB / 392.3 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3412, allocations: 0.7969 kB / 392.3 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005301/0.3417, allocations: 384.5 kB / 392.7 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.788e-05/0.3418, allocations: 106.1 kB / 392.8 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.3418, allocations: 5.766 kB / 392.8 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.3421, allocations: 30.14 kB / 392.8 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.084e-05/0.3421, allocations: 19.59 kB / 392.8 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.3422, allocations: 14.05 kB / 392.8 MB, free: 312 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.3423, allocations: 186 kB / 393 MB, free: 200 kB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3423, allocations: 0 / 393 MB, free: 200 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.000389/0.3427, allocations: 91.22 kB / 393.1 MB, free: 184 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.0001187/0.3428, allocations: 111 kB / 393.2 MB, free: 84 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007713/0.3436, allocations: 454 kB / 393.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3436, allocations: 4.125 kB / 393.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004155/0.3441, allocations: 343.7 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.0003813/0.3444, allocations: 47.38 kB / 394 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008819/0.3453, allocations: 0.4937 MB / 394.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.3457, allocations: 0.7631 MB / 395.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.3458, allocations: 26.28 kB / 395.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.103e-05/0.3459, allocations: 22.38 kB / 395.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3459, allocations: 0 / 395.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of Templates: time 0.008656/0.3545, allocations: 3.841 MB / 399.2 MB, free: 14.18 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)