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.0008392/0.0008395, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.0008629/0.0008632, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.612/1.612, allocations: 205.4 MB / 223.7 MB, free: 12.99 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.0004308/0.0004308, allocations: 12 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09857/0.09901, allocations: 47.59 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003071/0.1021, allocations: 2.631 MB / 330.9 MB, free: 1.105 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.1034, allocations: 0.706 MB / 331.7 MB, free: 400 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.1035, allocations: 11.94 kB / 331.7 MB, free: 388 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001445/0.1037, allocations: 43.69 kB / 331.7 MB, free: 344 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.1039, allocations: 91.22 kB / 331.8 MB, free: 252 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002444/0.1041, allocations: 75.92 kB / 331.9 MB, free: 176 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003953/0.1045, allocations: 390.2 kB / 332.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.1047, allocations: 95.67 kB / 332.3 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000176/0.1049, allocations: 119.5 kB / 332.5 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.1051, allocations: 151.2 kB / 332.6 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.1052, allocations: 16 kB / 332.6 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.366e-05/0.1052, allocations: 20 kB / 332.6 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.582e-05/0.1053, allocations: 63.67 kB / 332.7 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001591/0.1054, allocations: 176.9 kB / 332.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.1058, allocations: 362.8 kB / 333.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.1058, allocations: 0 / 333.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1058, allocations: 0 / 333.2 MB, free: 14.8 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.1058, allocations: 0 / 333.2 MB, free: 14.8 MB / 286.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.0008892/0.1067, allocations: 0.5887 MB / 333.8 MB, free: 14.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.1067, allocations: 8.031 kB / 333.8 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.875e-05/0.1068, allocations: 36.56 kB / 333.9 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.1072, allocations: 287.5 kB / 334.1 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.1072, allocations: 20.92 kB / 334.2 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.706e-05/0.1072, allocations: 32.38 kB / 334.2 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004951/0.1077, allocations: 265.2 kB / 334.5 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1078, allocations: 0 / 334.5 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.93e-05/0.1078, allocations: 12 kB / 334.5 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.1078, allocations: 11.94 kB / 334.5 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004799/0.1083, allocations: 234.1 kB / 334.7 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.1099, allocations: 0.995 MB / 335.7 MB, free: 12.17 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005041/0.1104, allocations: 303.8 kB / 336 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002288/0.1106, allocations: 120.8 kB / 336.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.734e-05/0.1106, allocations: 4 kB / 336.1 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.1107, allocations: 38.55 kB / 336.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.432e-06/0.1107, allocations: 3.938 kB / 336.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001291/0.112, allocations: 0.5871 MB / 336.8 MB, free: 11.03 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.112, allocations: 55.41 kB / 336.8 MB, free: 10.96 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002501/0.1123, allocations: 254.6 kB / 337.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.1123, allocations: 25.7 kB / 337.1 MB, free: 10.67 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.1124, allocations: 183.9 kB / 337.3 MB, free: 10.48 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.976e-05/0.1125, allocations: 74.91 kB / 337.3 MB, free: 10.41 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.122e-05/0.1126, allocations: 29.7 kB / 337.4 MB, free: 10.38 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1127, allocations: 334.8 kB / 337.7 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001966/0.1129, allocations: 84.42 kB / 337.8 MB, free: 9.957 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.1131, allocations: 123.4 kB / 337.9 MB, free: 9.828 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000383/0.1135, allocations: 202.4 kB / 338.1 MB, free: 9.621 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1135, allocations: 0 / 338.1 MB, free: 9.621 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006175/0.1142, allocations: 338.8 kB / 338.4 MB, free: 9.277 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.1142, allocations: 4 kB / 338.4 MB, free: 9.273 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1142, allocations: 4 kB / 338.4 MB, free: 9.27 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002642/0.1145, allocations: 81.61 kB / 338.5 MB, free: 9.184 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.1147, allocations: 35.97 kB / 338.5 MB, free: 9.148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.1167, allocations: 2.842 MB / 341.4 MB, free: 6.039 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.1169, allocations: 23.88 kB / 341.4 MB, free: 6.016 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.004e-05/0.117, allocations: 11.98 kB / 341.4 MB, free: 6.004 MB / 286.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.0001389/0.1171, allocations: 138 kB / 341.6 MB, free: 5.859 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.911e-05/0.1172, allocations: 27.78 kB / 341.6 MB, free: 5.832 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.881e-05/0.1172, allocations: 34.17 kB / 341.6 MB, free: 5.801 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1172, allocations: 4 kB / 341.6 MB, free: 5.797 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.1172, allocations: 7.938 kB / 341.6 MB, free: 5.789 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1173, allocations: 0 / 341.6 MB, free: 5.789 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009687/0.1182, allocations: 0.6911 MB / 342.3 MB, free: 5.035 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.1182, allocations: 0 / 342.3 MB, free: 5.035 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001367/0.1184, allocations: 39.92 kB / 342.4 MB, free: 4.996 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001717/0.1186, allocations: 69.61 kB / 342.4 MB, free: 4.922 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1186, allocations: 8 kB / 342.4 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00191/0.1205, allocations: 2.827 MB / 345.3 MB, free: 1.824 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1205, allocations: 11.91 kB / 345.3 MB, free: 1.812 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005993/0.1211, allocations: 401.5 kB / 345.7 MB, free: 1.398 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.762e-05/0.1212, allocations: 96.77 kB / 345.8 MB, free: 1.285 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.886e-05/0.1212, allocations: 12 kB / 345.8 MB, free: 1.273 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.1215, allocations: 35.97 kB / 345.8 MB, free: 1.238 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.828e-05/0.1216, allocations: 23.91 kB / 345.8 MB, free: 1.215 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.1216, allocations: 4 kB / 345.8 MB, free: 1.211 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001578/0.1217, allocations: 197.9 kB / 346 MB, free: 1.016 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1218, allocations: 0 / 346 MB, free: 1.016 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003632/0.1221, allocations: 91.84 kB / 346.1 MB, free: 0.9258 MB / 286.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.0001136/0.1222, allocations: 103.2 kB / 346.2 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007234/0.123, allocations: 457.1 kB / 346.7 MB, free: 348 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.123, allocations: 0 / 346.7 MB, free: 348 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004292/0.1234, allocations: 365.2 kB / 347 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.1238, allocations: 52.42 kB / 347.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007879/0.1246, allocations: 0.6252 MB / 347.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/0.1249, allocations: 0.7639 MB / 348.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.125, allocations: 26.28 kB / 348.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.086e-05/0.1251, allocations: 19.44 kB / 348.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1251, allocations: 0 / 348.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of Templates: time 0.006514/0.1316, allocations: 3.431 MB / 351.9 MB, free: 11 MB / 302.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)