Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.006709/0.006709, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.002354/0.002354, allocations: 196.1 kB / 16.67 MB, free: 5.938 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.557/1.557, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.001385/0.001385, allocations: 59.31 kB / 326.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1155, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004192/0.1198, allocations: 2.956 MB / 376.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.1211, allocations: 0.7174 MB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.1212, allocations: 4 kB / 376.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001857/0.1214, allocations: 55.44 kB / 376.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001695/0.1216, allocations: 107 kB / 377 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.1219, allocations: 83.88 kB / 377.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004287/0.1223, allocations: 418 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002415/0.1226, allocations: 119 kB / 377.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.1228, allocations: 155.4 kB / 377.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/0.123, allocations: 159.3 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.384e-05/0.1231, allocations: 32 kB / 378 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.696e-05/0.1231, allocations: 32 kB / 378 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.834e-05/0.1232, allocations: 75.73 kB / 378.1 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.1234, allocations: 171.2 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003994/0.1238, allocations: 390.6 kB / 378.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1238, allocations: 0 / 378.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1238, allocations: 0 / 378.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1238, allocations: 0 / 378.6 MB, free: 11.85 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.001036/0.1249, allocations: 0.6353 MB / 379.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.1249, allocations: 15.89 kB / 379.3 MB, free: 11.15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.841e-05/0.125, allocations: 36.56 kB / 379.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004131/0.1254, allocations: 275.6 kB / 379.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.1255, allocations: 20.94 kB / 379.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.95e-05/0.1255, allocations: 28.31 kB / 379.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005105/0.126, allocations: 265.2 kB / 379.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.126, allocations: 0 / 379.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/0.1261, allocations: 12 kB / 379.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1261, allocations: 4 kB / 379.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004706/0.1266, allocations: 218.1 kB / 380.1 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.1282, allocations: 0.9599 MB / 381.1 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005458/0.1288, allocations: 303.7 kB / 381.4 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002414/0.129, allocations: 116.9 kB / 381.5 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.1291, allocations: 7.984 kB / 381.5 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.1291, allocations: 30.56 kB / 381.5 MB, free: 8.746 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.1291, allocations: 0 / 381.5 MB, free: 8.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001337/0.1304, allocations: 0.5637 MB / 382.1 MB, free: 8.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.1305, allocations: 55.34 kB / 382.1 MB, free: 8.066 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000268/0.1308, allocations: 254.5 kB / 382.4 MB, free: 7.809 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.1308, allocations: 33.7 kB / 382.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.1309, allocations: 187.9 kB / 382.6 MB, free: 7.582 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.025e-05/0.131, allocations: 74.94 kB / 382.7 MB, free: 7.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.383e-05/0.1311, allocations: 45.88 kB / 382.7 MB, free: 7.457 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1312, allocations: 334.8 kB / 383 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/0.1314, allocations: 76.42 kB / 383.1 MB, free: 7.047 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002027/0.1316, allocations: 115.4 kB / 383.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/0.132, allocations: 186.3 kB / 383.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.132, allocations: 0 / 383.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006273/0.1326, allocations: 326.7 kB / 383.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.1326, allocations: 5.094 kB / 383.7 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.1327, allocations: 4 kB / 383.7 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002915/0.133, allocations: 77.73 kB / 383.8 MB, free: 6.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.1332, allocations: 39.91 kB / 383.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002416/0.1356, allocations: 3.028 MB / 386.9 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.1358, allocations: 35.7 kB / 386.9 MB, free: 2.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.1358, allocations: 8 kB / 386.9 MB, free: 2.922 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.0001617/0.136, allocations: 137.8 kB / 387.1 MB, free: 2.777 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.281e-05/0.1361, allocations: 35.7 kB / 387.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.426e-05/0.1361, allocations: 30.19 kB / 387.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1361, allocations: 192 / 387.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.669e-05/0.1362, allocations: 8 kB / 387.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.273e-06/0.1362, allocations: 3.984 kB / 387.1 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.1372, allocations: 0.6796 MB / 387.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.1373, allocations: 4 kB / 387.8 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.1374, allocations: 23.97 kB / 387.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001815/0.1376, allocations: 77.66 kB / 387.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.1376, allocations: 4 kB / 387.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002393/0.14, allocations: 3.043 MB / 391 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.14, allocations: 4.125 kB / 391 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006158/0.1406, allocations: 386 kB / 391.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.764e-05/0.1407, allocations: 104.8 kB / 391.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.711e-05/0.1408, allocations: 8 kB / 391.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.141, allocations: 23.97 kB / 391.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.524e-05/0.1411, allocations: 15.98 kB / 391.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.1411, allocations: 15.98 kB / 391.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002004/0.1413, allocations: 186 kB / 391.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1413, allocations: 4 kB / 391.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003938/0.1417, allocations: 91.78 kB / 391.8 MB, free: 13.65 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.0001693/0.1419, allocations: 111.1 kB / 391.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008113/0.1427, allocations: 449.3 kB / 392.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.1427, allocations: 0 / 392.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004259/0.1432, allocations: 341.2 kB / 392.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.1436, allocations: 56.77 kB / 392.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008305/0.1444, allocations: 0.4966 MB / 393.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.1448, allocations: 0.7639 MB / 394 MB, free: 11.35 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.774e-05/0.1449, allocations: 26.28 kB / 394 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.981e-05/0.1449, allocations: 19.44 kB / 394 MB, free: 11.3 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1449, allocations: 0 / 394 MB, free: 11.3 MB / 334.1 MB Notification: Performance of Templates: time 0.007746/0.1527, allocations: 3.842 MB / 397.9 MB, free: 7.453 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1)