Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.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.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009529/0.0009529, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.007278/0.007278, allocations: 172 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.4 MB / 222.4 MB, free: 5.793 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.0005206/0.0005208, allocations: 16 kB / 279.5 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3434, allocations: 47.58 MB / 327 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.003203/0.3466, allocations: 2.399 MB / 329.4 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002482/0.3492, allocations: 0.714 MB / 330.2 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002842/0.3495, allocations: 4.688 kB / 330.2 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002301/0.3498, allocations: 35.31 kB / 330.2 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003058/0.3501, allocations: 71.84 kB / 330.3 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004036/0.3505, allocations: 79.12 kB / 330.3 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004214/0.3509, allocations: 327.3 kB / 330.7 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002578/0.3512, allocations: 74.77 kB / 330.7 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.3514, allocations: 115.1 kB / 330.8 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/0.3516, allocations: 135.9 kB / 331 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.737e-05/0.3517, allocations: 15.12 kB / 331 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.949e-05/0.3518, allocations: 18.91 kB / 331 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.414e-05/0.3518, allocations: 47.11 kB / 331.1 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000375/0.3522, allocations: 153.3 kB / 331.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004206/0.3526, allocations: 303.3 kB / 331.5 MB, free: 13.96 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3526, allocations: 0 / 331.5 MB, free: 13.96 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3527, allocations: 4 kB / 331.5 MB, free: 13.96 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.3527, allocations: 0 / 331.5 MB, free: 13.96 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001394/0.3541, allocations: 0.6139 MB / 332.1 MB, free: 13.41 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.3541, allocations: 9.469 kB / 332.1 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.869e-05/0.3542, allocations: 32.31 kB / 332.2 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/0.3547, allocations: 275 kB / 332.4 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.3547, allocations: 16.97 kB / 332.4 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.518e-05/0.3548, allocations: 22.03 kB / 332.5 MB, free: 13.1 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007103/0.3555, allocations: 265.3 kB / 332.7 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3555, allocations: 4 kB / 332.7 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.83e-05/0.3555, allocations: 5.438 kB / 332.7 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.3556, allocations: 4.312 kB / 332.7 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000885/0.3564, allocations: 286.2 kB / 333 MB, free: 12.83 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.3584, allocations: 0.8899 MB / 333.9 MB, free: 12.08 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009149/0.3593, allocations: 265.5 kB / 334.2 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000343/0.3596, allocations: 116.4 kB / 334.3 MB, free: 11.9 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/0.3597, allocations: 6.266 kB / 334.3 MB, free: 11.9 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005522/0.3602, allocations: 198.3 kB / 334.5 MB, free: 11.75 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 2.695e-06/0.3603, allocations: 0 / 334.5 MB, free: 11.75 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.002309/0.3626, allocations: 0.7103 MB / 335.2 MB, free: 11.01 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.3627, allocations: 106.8 kB / 335.3 MB, free: 10.88 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003191/0.363, allocations: 264.8 kB / 335.6 MB, free: 10.61 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 8.294e-05/0.3631, allocations: 29.7 kB / 335.6 MB, free: 10.58 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.3632, allocations: 171.9 kB / 335.7 MB, free: 10.41 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.222e-05/0.3633, allocations: 43.36 kB / 335.8 MB, free: 10.36 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.336e-05/0.3633, allocations: 21.72 kB / 335.8 MB, free: 10.34 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3635, allocations: 334.8 kB / 336.1 MB, free: 10 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003232/0.3638, allocations: 111.9 kB / 336.2 MB, free: 9.891 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003654/0.3642, allocations: 171.6 kB / 336.4 MB, free: 9.695 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006576/0.3648, allocations: 290.3 kB / 336.7 MB, free: 9.387 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.3649, allocations: 0 / 336.7 MB, free: 9.387 MB / 270.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001194/0.3661, allocations: 475.5 kB / 337.2 MB, free: 8.906 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001514/0.3662, allocations: 159.9 kB / 337.3 MB, free: 8.719 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.3662, allocations: 4 kB / 337.3 MB, free: 8.715 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005548/0.3668, allocations: 132.7 kB / 337.5 MB, free: 8.582 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.367, allocations: 51.91 kB / 337.5 MB, free: 8.531 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002323/0.3694, allocations: 1.748 MB / 339.3 MB, free: 6.645 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003727/0.3697, allocations: 55.78 kB / 339.3 MB, free: 6.59 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.3698, allocations: 12 kB / 339.3 MB, free: 6.578 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.686e-06/0.3698, allocations: 4 kB / 339.3 MB, free: 6.574 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007758/0.3706, allocations: 324.2 kB / 339.6 MB, free: 6.25 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.3706, allocations: 4.188 kB / 339.6 MB, free: 6.246 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001043/0.3707, allocations: 40.83 kB / 339.7 MB, free: 6.203 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.3709, allocations: 43.91 kB / 339.7 MB, free: 6.16 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/0.3722, allocations: 1.53 MB / 341.3 MB, free: 4.496 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003077/0.3726, allocations: 51.78 kB / 341.3 MB, free: 4.445 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.3726, allocations: 15.98 kB / 341.3 MB, free: 4.43 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002481/0.3728, allocations: 213 kB / 341.5 MB, free: 4.211 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.135e-05/0.3729, allocations: 19.81 kB / 341.6 MB, free: 4.191 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.207e-05/0.3729, allocations: 29.77 kB / 341.6 MB, free: 4.164 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.3729, allocations: 0 / 341.6 MB, free: 4.164 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.373, allocations: 0 / 341.6 MB, free: 4.164 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.373, allocations: 4 kB / 341.6 MB, free: 4.16 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003208/0.3733, allocations: 293.4 kB / 341.9 MB, free: 3.824 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.3733, allocations: 0 / 341.9 MB, free: 3.824 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.3735, allocations: 31.97 kB / 341.9 MB, free: 3.793 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002607/0.3737, allocations: 72.81 kB / 342 MB, free: 3.719 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/0.3738, allocations: 11.92 kB / 342 MB, free: 3.707 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001865/0.3756, allocations: 1.636 MB / 343.6 MB, free: 1.941 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.3757, allocations: 4.031 kB / 343.6 MB, free: 1.938 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009372/0.3766, allocations: 373.4 kB / 344 MB, free: 1.551 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.599e-05/0.3767, allocations: 100.8 kB / 344.1 MB, free: 1.434 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.632e-05/0.3767, allocations: 8 kB / 344.1 MB, free: 1.426 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002419/0.377, allocations: 35.91 kB / 344.1 MB, free: 1.391 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.914e-05/0.3771, allocations: 27.91 kB / 344.2 MB, free: 1.363 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.3771, allocations: 8 kB / 344.2 MB, free: 1.355 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002022/0.3773, allocations: 188.5 kB / 344.3 MB, free: 1.176 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3773, allocations: 3.938 kB / 344.4 MB, free: 1.172 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005832/0.3779, allocations: 123.7 kB / 344.5 MB, free: 1.051 MB / 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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001866/0.3781, allocations: 99.25 kB / 344.6 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.3796, allocations: 0.7267 MB / 345.3 MB, free: 168 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3796, allocations: 0 / 345.3 MB, free: 168 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005002/0.3802, allocations: 250.9 kB / 345.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003987/0.3806, allocations: 40.53 kB / 345.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.3816, allocations: 0.5563 MB / 346.1 MB, free: 15.28 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.382, allocations: 0.752 MB / 346.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001285/0.3821, allocations: 22.3 kB / 346.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.888e-05/0.3822, allocations: 23.42 kB / 346.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3822, allocations: 0 / 346.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of Templates: time 0.008806/0.391, allocations: 3.885 MB / 350.8 MB, free: 10.57 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1)