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.001436/0.001436, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001717/0.001717, allocations: 187.5 kB / 16.25 MB, free: 6.641 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.754/1.754, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.001414/0.001414, allocations: 47.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3388, allocations: 46.62 MB / 324.8 MB, free: 1.91 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003872/0.3427, allocations: 3.012 MB / 327.9 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.344, allocations: 0.708 MB / 328.6 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.3441, allocations: 9.625 kB / 328.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.3443, allocations: 49.06 kB / 328.6 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001823/0.3445, allocations: 87.38 kB / 328.7 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002551/0.3448, allocations: 71.95 kB / 328.8 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004317/0.3452, allocations: 406.5 kB / 329.2 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002205/0.3455, allocations: 112.4 kB / 329.3 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.3457, allocations: 144.2 kB / 329.4 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001814/0.3459, allocations: 170.2 kB / 329.6 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.695e-05/0.3459, allocations: 31.78 kB / 329.6 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.971e-05/0.346, allocations: 31.91 kB / 329.7 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.431e-05/0.3461, allocations: 69.11 kB / 329.7 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.3462, allocations: 183.8 kB / 329.9 MB, free: 14.08 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003768/0.3466, allocations: 382.6 kB / 330.3 MB, free: 13.8 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3466, allocations: 0 / 330.3 MB, free: 13.8 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3466, allocations: 0 / 330.3 MB, free: 13.8 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.3467, allocations: 0 / 330.3 MB, free: 13.8 MB / 270.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.001009/0.3477, allocations: 0.6339 MB / 330.9 MB, free: 13.25 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.3477, allocations: 12.98 kB / 330.9 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.615e-05/0.3478, allocations: 39.38 kB / 331 MB, free: 13.22 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/0.3481, allocations: 275.4 kB / 331.2 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.3482, allocations: 23.09 kB / 331.3 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.459e-05/0.3482, allocations: 26.69 kB / 331.3 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.3488, allocations: 259.6 kB / 331.5 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3488, allocations: 0 / 331.5 MB, free: 12.77 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/0.3488, allocations: 11.66 kB / 331.5 MB, free: 12.76 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.3488, allocations: 6.938 kB / 331.5 MB, free: 12.76 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004619/0.3493, allocations: 222.6 kB / 331.8 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.351, allocations: 0.979 MB / 332.7 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005227/0.3515, allocations: 295.2 kB / 333 MB, free: 11.65 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002517/0.3518, allocations: 110 kB / 333.1 MB, free: 11.58 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.3518, allocations: 0 / 333.1 MB, free: 11.58 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.3518, allocations: 42.55 kB / 333.2 MB, free: 11.53 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 9.92e-07/0.3519, allocations: 3.938 kB / 333.2 MB, free: 11.53 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001202/0.3531, allocations: 0.552 MB / 333.7 MB, free: 10.93 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.3531, allocations: 59.34 kB / 333.8 MB, free: 10.86 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.3534, allocations: 258.6 kB / 334 MB, free: 10.59 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.3534, allocations: 33.7 kB / 334.1 MB, free: 10.55 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.3535, allocations: 179.9 kB / 334.3 MB, free: 10.37 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.905e-05/0.3536, allocations: 75 kB / 334.3 MB, free: 10.3 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.724e-05/0.3537, allocations: 45.84 kB / 334.4 MB, free: 10.25 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3539, allocations: 338.8 kB / 334.7 MB, free: 9.906 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.354, allocations: 76.42 kB / 334.8 MB, free: 9.832 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/0.3543, allocations: 115.4 kB / 334.9 MB, free: 9.711 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003502/0.3546, allocations: 186.4 kB / 335.1 MB, free: 9.52 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3546, allocations: 0 / 335.1 MB, free: 9.52 MB / 270.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005867/0.3552, allocations: 330.8 kB / 335.4 MB, free: 9.184 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.3552, allocations: 4 kB / 335.4 MB, free: 9.18 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.3552, allocations: 0 / 335.4 MB, free: 9.18 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002529/0.3555, allocations: 73.61 kB / 335.5 MB, free: 9.102 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001963/0.3557, allocations: 43.97 kB / 335.5 MB, free: 9.059 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002311/0.358, allocations: 3.04 MB / 338.6 MB, free: 5.738 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.3583, allocations: 23.86 kB / 338.6 MB, free: 5.715 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.3583, allocations: 8 kB / 338.6 MB, free: 5.707 MB / 270.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.0001509/0.3584, allocations: 141.8 kB / 338.7 MB, free: 5.559 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.315e-05/0.3585, allocations: 31.72 kB / 338.8 MB, free: 5.527 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.761e-05/0.3585, allocations: 30.19 kB / 338.8 MB, free: 5.5 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.3586, allocations: 3.984 kB / 338.8 MB, free: 5.496 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.3586, allocations: 4 kB / 338.8 MB, free: 5.492 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.3586, allocations: 3.984 kB / 338.8 MB, free: 5.488 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009815/0.3596, allocations: 0.68 MB / 339.5 MB, free: 4.746 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.3596, allocations: 3.984 kB / 339.5 MB, free: 4.742 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.3597, allocations: 28.11 kB / 339.5 MB, free: 4.715 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001775/0.3599, allocations: 81.61 kB / 339.6 MB, free: 4.629 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.3599, allocations: 0 / 339.6 MB, free: 4.629 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002255/0.3622, allocations: 3.04 MB / 342.6 MB, free: 1.312 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3622, allocations: 0 / 342.6 MB, free: 1.312 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005855/0.3628, allocations: 384.8 kB / 343 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.874e-05/0.3629, allocations: 104.8 kB / 343.1 MB, free: 0.793 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.966e-05/0.3629, allocations: 4 kB / 343.1 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.3632, allocations: 31.97 kB / 343.1 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.713e-05/0.3632, allocations: 27.91 kB / 343.2 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.3633, allocations: 7.938 kB / 343.2 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001696/0.3634, allocations: 186 kB / 343.4 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3635, allocations: 0 / 343.4 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004066/0.3639, allocations: 99.75 kB / 343.5 MB, free: 452 kB / 270.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.0001413/0.364, allocations: 103.2 kB / 343.6 MB, free: 336 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0007637/0.3648, allocations: 449.2 kB / 344 MB, free: 15.86 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3648, allocations: 4 kB / 344 MB, free: 15.86 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003892/0.3652, allocations: 349.2 kB / 344.3 MB, free: 15.49 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000463/0.3657, allocations: 52.58 kB / 344.4 MB, free: 15.44 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008751/0.3666, allocations: 0.6078 MB / 345 MB, free: 14.81 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.3669, allocations: 0.7678 MB / 345.8 MB, free: 14.01 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001081/0.367, allocations: 18.3 kB / 345.8 MB, free: 14 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.933e-05/0.3671, allocations: 19.44 kB / 345.8 MB, free: 13.98 MB / 286.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3671, allocations: 0 / 345.8 MB, free: 13.98 MB / 286.1 MB Notification: Performance of Templates: time 0.007181/0.3743, allocations: 3.63 MB / 349.4 MB, free: 10.35 MB / 286.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)