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.001139/0.001139, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.439/1.439, allocations: 205.1 MB / 222.4 MB, free: 4.551 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.001324/0.001324, allocations: 59.91 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3188, allocations: 46.63 MB / 325.3 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005508/0.3244, allocations: 2.979 MB / 328.3 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.3263, allocations: 0.7125 MB / 329 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.3265, allocations: 4.938 kB / 329 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000235/0.3268, allocations: 52.97 kB / 329.1 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.327, allocations: 110.2 kB / 329.2 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002889/0.3273, allocations: 84.53 kB / 329.2 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004943/0.3278, allocations: 406.5 kB / 329.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003035/0.3281, allocations: 112 kB / 329.7 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002652/0.3284, allocations: 151.8 kB / 329.9 MB, free: 14.28 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.3286, allocations: 163.6 kB / 330.1 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.545e-05/0.3287, allocations: 31.59 kB / 330.1 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.169e-05/0.3288, allocations: 32.22 kB / 330.1 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.992e-05/0.3289, allocations: 71.56 kB / 330.2 MB, free: 14.1 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002659/0.3292, allocations: 177.3 kB / 330.4 MB, free: 13.98 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005091/0.3297, allocations: 385.3 kB / 330.7 MB, free: 13.7 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3297, allocations: 1.031 kB / 330.7 MB, free: 13.7 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3297, allocations: 0 / 330.7 MB, free: 13.7 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.3298, allocations: 0 / 330.7 MB, free: 13.7 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.001381/0.3311, allocations: 0.6303 MB / 331.4 MB, free: 13.15 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.344e-05/0.3312, allocations: 12.55 kB / 331.4 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.3314, allocations: 40.25 kB / 331.4 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005355/0.3319, allocations: 278.4 kB / 331.7 MB, free: 12.85 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.14e-05/0.332, allocations: 20.12 kB / 331.7 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.409e-05/0.332, allocations: 25.06 kB / 331.7 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000672/0.3327, allocations: 260.1 kB / 332 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.3328, allocations: 7.938 kB / 332 MB, free: 12.67 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.684e-05/0.3328, allocations: 11.53 kB / 332 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.3328, allocations: 6.781 kB / 332 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006275/0.3335, allocations: 214.5 kB / 332.2 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002138/0.3356, allocations: 0.9752 MB / 333.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000579/0.3362, allocations: 301 kB / 333.5 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002587/0.3365, allocations: 108.8 kB / 333.6 MB, free: 11.41 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.3365, allocations: 4 kB / 333.6 MB, free: 11.41 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.531e-05/0.3366, allocations: 38.5 kB / 333.6 MB, free: 11.36 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 2.504e-06/0.3366, allocations: 3.938 kB / 333.6 MB, free: 11.36 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001461/0.3381, allocations: 0.5559 MB / 334.2 MB, free: 10.75 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.3381, allocations: 55.41 kB / 334.3 MB, free: 10.69 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002943/0.3384, allocations: 258.6 kB / 334.5 MB, free: 10.43 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/0.3385, allocations: 29.7 kB / 334.5 MB, free: 10.39 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.3386, allocations: 183.9 kB / 334.7 MB, free: 10.2 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.635e-05/0.3387, allocations: 71 kB / 334.8 MB, free: 10.13 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.896e-05/0.3387, allocations: 49.84 kB / 334.8 MB, free: 10.08 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.3389, allocations: 338.8 kB / 335.2 MB, free: 9.738 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.3391, allocations: 76.42 kB / 335.2 MB, free: 9.664 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.3393, allocations: 107.4 kB / 335.3 MB, free: 9.551 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004079/0.3398, allocations: 190.4 kB / 335.5 MB, free: 9.355 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3398, allocations: 0 / 335.5 MB, free: 9.355 MB / 270.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006652/0.3405, allocations: 322.8 kB / 335.8 MB, free: 9.027 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.3405, allocations: 4 kB / 335.8 MB, free: 9.023 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3405, allocations: 11.92 kB / 335.9 MB, free: 9.012 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002892/0.3408, allocations: 73.67 kB / 335.9 MB, free: 8.934 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.341, allocations: 31.98 kB / 336 MB, free: 8.902 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002721/0.3437, allocations: 3.051 MB / 339 MB, free: 5.57 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002416/0.344, allocations: 23.86 kB / 339 MB, free: 5.547 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.344, allocations: 12 kB / 339.1 MB, free: 5.535 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.0002326/0.3443, allocations: 137.8 kB / 339.2 MB, free: 5.391 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.718e-05/0.3443, allocations: 27.66 kB / 339.2 MB, free: 5.363 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.587e-05/0.3444, allocations: 34.23 kB / 339.2 MB, free: 5.332 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3444, allocations: 4 kB / 339.2 MB, free: 5.328 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.3444, allocations: 0 / 339.2 MB, free: 5.328 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.3444, allocations: 4 kB / 339.3 MB, free: 5.324 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.3456, allocations: 0.6831 MB / 339.9 MB, free: 4.578 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3456, allocations: 0 / 339.9 MB, free: 4.578 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000134/0.3457, allocations: 27.97 kB / 340 MB, free: 4.551 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001971/0.3459, allocations: 73.8 kB / 340 MB, free: 4.473 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.3459, allocations: 11.94 kB / 340 MB, free: 4.461 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002253/0.3482, allocations: 3.044 MB / 343.1 MB, free: 1.141 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3482, allocations: 0 / 343.1 MB, free: 1.141 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006063/0.3488, allocations: 381.6 kB / 343.5 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.751e-05/0.3489, allocations: 108.7 kB / 343.6 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.119e-05/0.349, allocations: 3.984 kB / 343.6 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002557/0.3492, allocations: 27.98 kB / 343.6 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.862e-05/0.3493, allocations: 19.97 kB / 343.6 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.3493, allocations: 15.94 kB / 343.6 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001755/0.3495, allocations: 190 kB / 343.8 MB, free: 376 kB / 270.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3495, allocations: 0 / 343.8 MB, free: 376 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005205/0.35, allocations: 99.69 kB / 343.9 MB, free: 276 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.0002333/0.3503, allocations: 103.2 kB / 344 MB, free: 160 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.3513, allocations: 445.2 kB / 344.5 MB, free: 15.7 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.3514, allocations: 7.938 kB / 344.5 MB, free: 15.69 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004759/0.3518, allocations: 341.2 kB / 344.8 MB, free: 15.33 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005855/0.3524, allocations: 65.2 kB / 344.9 MB, free: 15.27 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008902/0.3533, allocations: 493.8 kB / 345.3 MB, free: 14.76 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003595/0.3537, allocations: 0.7678 MB / 346.1 MB, free: 13.96 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.3538, allocations: 22.3 kB / 346.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.158e-05/0.3539, allocations: 15.44 kB / 346.1 MB, free: 13.93 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3539, allocations: 0 / 346.1 MB, free: 13.93 MB / 286.1 MB Notification: Performance of Templates: time 0.007786/0.3617, allocations: 3.707 MB / 349.9 MB, free: 10.23 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)