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.001107/0.001107, allocations: 111.1 kB / 17.06 MB, free: 5.992 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.001197/0.001197, allocations: 200 kB / 18.01 MB, free: 5.066 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.478/1.478, 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.00132/0.00132, allocations: 51.94 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1083, allocations: 46.61 MB / 374.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004404/0.1127, allocations: 2.967 MB / 377.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001629/0.1144, allocations: 0.7213 MB / 378.2 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003579/0.1147, allocations: 8 kB / 378.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002699/0.1151, allocations: 55.44 kB / 378.2 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003552/0.1154, allocations: 107 kB / 378.3 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003682/0.1158, allocations: 91.88 kB / 378.4 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005941/0.1164, allocations: 414 kB / 378.8 MB, free: 192 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.1167, allocations: 103.1 kB / 378.9 MB, free: 88 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2409/0.3576, allocations: 147.7 kB / 379.1 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003114/0.3579, allocations: 163.5 kB / 379.2 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.996e-05/0.358, allocations: 31.62 kB / 379.3 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.367e-05/0.3581, allocations: 31.62 kB / 379.3 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.392e-05/0.3582, allocations: 75.72 kB / 379.4 MB, free: 9.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.3583, allocations: 176 kB / 379.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005188/0.3589, allocations: 384.4 kB / 379.9 MB, free: 9.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3589, allocations: 1.312 kB / 379.9 MB, free: 9.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3589, allocations: 3.938 kB / 379.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.3589, allocations: 0 / 379.9 MB, free: 9.766 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.0009855/0.3599, allocations: 0.6379 MB / 380.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.36, allocations: 18.97 kB / 380.6 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.884e-05/0.36, allocations: 39.95 kB / 380.6 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004052/0.3605, allocations: 283.9 kB / 380.9 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.3605, allocations: 21.53 kB / 380.9 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.3605, allocations: 25.41 kB / 380.9 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005306/0.3611, allocations: 261 kB / 381.2 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.3611, allocations: 3.938 kB / 381.2 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.3611, allocations: 11.47 kB / 381.2 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.3611, allocations: 6.719 kB / 381.2 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005288/0.3617, allocations: 213.7 kB / 381.4 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.3635, allocations: 0.9741 MB / 382.4 MB, free: 8.586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005134/0.364, allocations: 299.9 kB / 382.7 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002388/0.3642, allocations: 110.3 kB / 382.8 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.3643, allocations: 2.469 kB / 382.8 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.3643, allocations: 36.67 kB / 382.8 MB, free: 8.418 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.532e-06/0.3643, allocations: 0 / 382.8 MB, free: 8.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001246/0.3656, allocations: 0.5591 MB / 383.4 MB, free: 8.156 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.3656, allocations: 57.94 kB / 383.5 MB, free: 8.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002541/0.3659, allocations: 257.1 kB / 383.7 MB, free: 7.984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.3659, allocations: 31.73 kB / 383.7 MB, free: 7.953 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.398e-05/0.366, allocations: 182.8 kB / 383.9 MB, free: 7.828 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.094e-05/0.3661, allocations: 81.48 kB / 384 MB, free: 7.777 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.243e-05/0.3661, allocations: 50.55 kB / 384 MB, free: 7.758 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.081e-05/0.3662, allocations: 334.7 kB / 384.4 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001884/0.3664, allocations: 77.09 kB / 384.4 MB, free: 7.445 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.3666, allocations: 110.3 kB / 384.6 MB, free: 7.414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003598/0.367, allocations: 190.3 kB / 384.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.367, allocations: 1.5 kB / 384.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006118/0.3676, allocations: 329 kB / 385.1 MB, free: 7.285 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.3677, allocations: 5.406 kB / 385.1 MB, free: 7.285 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.3677, allocations: 1.781 kB / 385.1 MB, free: 7.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003076/0.368, allocations: 76.28 kB / 385.1 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.3682, allocations: 42.36 kB / 385.2 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/0.37, allocations: 3.043 MB / 388.2 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.3702, allocations: 32.95 kB / 388.3 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.3702, allocations: 4.625 kB / 388.3 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.0001254/0.3704, allocations: 139.2 kB / 388.4 MB, free: 4.156 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.168e-05/0.3704, allocations: 38.2 kB / 388.4 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.789e-05/0.3705, allocations: 30.52 kB / 388.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3705, allocations: 3.312 kB / 388.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3705, allocations: 1.062 kB / 388.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3705, allocations: 2.375 kB / 388.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000975/0.3715, allocations: 0.6848 MB / 389.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3715, allocations: 1.062 kB / 389.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/0.3716, allocations: 25.94 kB / 389.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001816/0.3718, allocations: 77.81 kB / 389.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.3718, allocations: 1.062 kB / 389.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.3735, allocations: 3.04 MB / 392.3 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.3735, allocations: 9.828 kB / 392.3 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005927/0.3741, allocations: 383.4 kB / 392.7 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.776e-05/0.3741, allocations: 111.1 kB / 392.8 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.08e-05/0.3742, allocations: 5.844 kB / 392.8 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.3744, allocations: 29.12 kB / 392.8 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.723e-05/0.3745, allocations: 20.28 kB / 392.8 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.3745, allocations: 5.719 kB / 392.9 MB, free: 304 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001694/0.3747, allocations: 190 kB / 393 MB, free: 188 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.432e-06/0.3747, allocations: 1.094 kB / 393 MB, free: 188 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004119/0.3751, allocations: 101.7 kB / 393.1 MB, free: 164 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.0001181/0.3753, allocations: 103.7 kB / 393.2 MB, free: 68 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000834/0.3761, allocations: 451 kB / 393.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3761, allocations: 1.062 kB / 393.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004405/0.3766, allocations: 349.8 kB / 394 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/0.377, allocations: 47.17 kB / 394.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009014/0.3779, allocations: 0.4912 MB / 394.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.3782, allocations: 0.7632 MB / 395.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.3783, allocations: 21.61 kB / 395.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.002e-05/0.3784, allocations: 19.11 kB / 395.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3784, allocations: 4.75 kB / 395.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of Templates: time 0.008488/0.3869, allocations: 3.765 MB / 399.1 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)