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.009866/0.009866, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.002211/0.002211, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.661/1.661, allocations: 205.1 MB / 222.5 MB, free: 4.492 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.001214/0.001214, allocations: 57.59 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1071, allocations: 46.62 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004049/0.1112, allocations: 2.948 MB / 376.1 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.1126, allocations: 0.7213 MB / 376.9 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.1128, allocations: 11.94 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.113, allocations: 51.5 kB / 376.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001845/0.1132, allocations: 107 kB / 377 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.1135, allocations: 83.88 kB / 377.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003921/0.1139, allocations: 418 kB / 377.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.1141, allocations: 123 kB / 377.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002096/0.1143, allocations: 147.4 kB / 377.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.1145, allocations: 167.3 kB / 377.9 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.532e-05/0.1146, allocations: 32 kB / 378 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.56e-05/0.1146, allocations: 28 kB / 378 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.694e-05/0.1147, allocations: 75.75 kB / 378.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.1148, allocations: 175.1 kB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003528/0.1152, allocations: 378.7 kB / 378.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1152, allocations: 3.938 kB / 378.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1152, allocations: 4 kB / 378.6 MB, free: 11.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.1152, allocations: 4 kB / 378.6 MB, free: 11.82 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.0009828/0.1162, allocations: 0.6314 MB / 379.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1163, allocations: 15.89 kB / 379.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.666e-05/0.1164, allocations: 36.56 kB / 379.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.1168, allocations: 279.6 kB / 379.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.1168, allocations: 16.94 kB / 379.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.633e-05/0.1169, allocations: 28.38 kB / 379.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005141/0.1174, allocations: 261.2 kB / 379.9 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.1174, allocations: 0 / 379.9 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.1175, allocations: 16 kB / 379.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.1175, allocations: 8 kB / 379.9 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004953/0.118, allocations: 214.1 kB / 380.1 MB, free: 10.24 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.1196, allocations: 0.9638 MB / 381.1 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005149/0.1201, allocations: 299.7 kB / 381.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002423/0.1204, allocations: 112.8 kB / 381.5 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.1204, allocations: 4 kB / 381.5 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.1204, allocations: 34.56 kB / 381.5 MB, free: 8.727 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.663e-06/0.1204, allocations: 0 / 381.5 MB, free: 8.727 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001292/0.1217, allocations: 0.5597 MB / 382.1 MB, free: 8.117 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.1218, allocations: 55.41 kB / 382.1 MB, free: 8.051 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.1221, allocations: 258.5 kB / 382.4 MB, free: 7.789 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.1221, allocations: 29.7 kB / 382.4 MB, free: 7.754 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.1223, allocations: 179.9 kB / 382.6 MB, free: 7.574 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.054e-05/0.1224, allocations: 82.92 kB / 382.7 MB, free: 7.492 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.699e-05/0.1224, allocations: 45.88 kB / 382.7 MB, free: 7.441 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1226, allocations: 334.8 kB / 383 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001961/0.1228, allocations: 76.42 kB / 383.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000232/0.123, allocations: 111.4 kB / 383.2 MB, free: 6.914 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004089/0.1235, allocations: 194.3 kB / 383.4 MB, free: 6.715 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.1235, allocations: 0 / 383.4 MB, free: 6.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006519/0.1241, allocations: 322.8 kB / 383.7 MB, free: 6.387 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.1242, allocations: 4 kB / 383.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.1242, allocations: 0 / 383.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000343/0.1245, allocations: 77.66 kB / 383.8 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.1247, allocations: 35.92 kB / 383.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002474/0.1272, allocations: 3.051 MB / 386.9 MB, free: 2.934 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.1274, allocations: 31.7 kB / 386.9 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.1275, allocations: 12 kB / 386.9 MB, free: 2.891 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.0001421/0.1276, allocations: 137.8 kB / 387.1 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.158e-05/0.1277, allocations: 27.66 kB / 387.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.639e-05/0.1277, allocations: 30.17 kB / 387.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.1278, allocations: 0 / 387.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.1278, allocations: 8.062 kB / 387.1 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1278, allocations: 0 / 387.1 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.1288, allocations: 0.6834 MB / 387.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1288, allocations: 4 kB / 387.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.1289, allocations: 23.98 kB / 387.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001834/0.1291, allocations: 81.59 kB / 387.9 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.1292, allocations: 4 kB / 387.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002306/0.1315, allocations: 3.032 MB / 391 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.1315, allocations: 4 kB / 391 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006109/0.1321, allocations: 390.2 kB / 391.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.448e-05/0.1322, allocations: 100.8 kB / 391.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.005e-05/0.1322, allocations: 0 / 391.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002552/0.1325, allocations: 35.97 kB / 391.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/0.1326, allocations: 23.95 kB / 391.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.1326, allocations: 8 kB / 391.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001774/0.1328, allocations: 186 kB / 391.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1328, allocations: 0 / 391.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003766/0.1332, allocations: 95.78 kB / 391.8 MB, free: 13.63 MB / 334.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.0001489/0.1333, allocations: 123 kB / 391.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007593/0.1341, allocations: 433.4 kB / 392.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1341, allocations: 8.125 kB / 392.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000418/0.1345, allocations: 345.2 kB / 392.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003811/0.1349, allocations: 48.47 kB / 392.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009473/0.1359, allocations: 0.5004 MB / 393.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004027/0.1363, allocations: 0.7639 MB / 394 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001101/0.1364, allocations: 22.28 kB / 394 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.245e-05/0.1365, allocations: 19.44 kB / 394 MB, free: 11.28 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1365, allocations: 0 / 394 MB, free: 11.28 MB / 334.1 MB Notification: Performance of Templates: time 0.007563/0.1441, allocations: 3.753 MB / 397.8 MB, free: 7.523 MB / 334.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)