Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 87.31 kB / 16.31 MB, free: 6.449 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.0009577/0.0009577, allocations: 183 kB / 17.21 MB, free: 6.316 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.883/1.883, allocations: 205.4 MB / 223.4 MB, free: 5.582 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.0005861/0.0005863, allocations: 12 kB / 280.2 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3459, allocations: 47.59 MB / 327.7 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003345/0.3493, allocations: 2.313 MB / 330.1 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.3509, allocations: 0.6806 MB / 330.7 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.351, allocations: 7.438 kB / 330.7 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.3512, allocations: 28.27 kB / 330.8 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001809/0.3514, allocations: 76.69 kB / 330.8 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003/0.3517, allocations: 66.31 kB / 330.9 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004461/0.3521, allocations: 318.3 kB / 331.2 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002294/0.3524, allocations: 68.73 kB / 331.3 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001907/0.3526, allocations: 112.1 kB / 331.4 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.3528, allocations: 140.7 kB / 331.5 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.934e-05/0.3528, allocations: 15.19 kB / 331.6 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.022e-05/0.3529, allocations: 14.84 kB / 331.6 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.821e-05/0.353, allocations: 46.27 kB / 331.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.3531, allocations: 73.52 kB / 331.7 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003015/0.3534, allocations: 241.4 kB / 331.9 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.3534, allocations: 1.438 kB / 331.9 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3534, allocations: 0 / 331.9 MB, free: 14.23 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.3534, allocations: 0 / 331.9 MB, free: 14.23 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.001275/0.3547, allocations: 0.6091 MB / 332.5 MB, free: 13.69 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.3548, allocations: 9.688 kB / 332.5 MB, free: 13.69 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.81e-05/0.3549, allocations: 35.17 kB / 332.6 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003643/0.3552, allocations: 271 kB / 332.8 MB, free: 13.4 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.325e-05/0.3553, allocations: 21.17 kB / 332.9 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.512e-05/0.3553, allocations: 21.12 kB / 332.9 MB, free: 13.38 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000685/0.356, allocations: 258.1 kB / 333.1 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.356, allocations: 0 / 333.1 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.815e-05/0.3561, allocations: 5.938 kB / 333.1 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.3561, allocations: 5.188 kB / 333.1 MB, free: 13.23 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000795/0.3569, allocations: 283.5 kB / 333.4 MB, free: 13.11 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.3586, allocations: 0.8925 MB / 334.3 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008576/0.3595, allocations: 270.6 kB / 334.6 MB, free: 12.24 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003868/0.3599, allocations: 126.4 kB / 334.7 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.36, allocations: 2.25 kB / 334.7 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000588/0.3605, allocations: 199.4 kB / 334.9 MB, free: 12.03 MB / 270.1 MB Notification: Performance of pre-optimization done (n=13): time 1.203e-06/0.3606, allocations: 0 / 334.9 MB, free: 12.03 MB / 270.1 MB Notification: Performance of matching and sorting (n=13): time 0.002356/0.3629, allocations: 0.7517 MB / 335.6 MB, free: 11.36 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.408e-05/0.363, allocations: 106.8 kB / 335.8 MB, free: 11.23 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.3634, allocations: 270.5 kB / 336 MB, free: 10.95 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.3634, allocations: 29.7 kB / 336 MB, free: 10.92 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.3635, allocations: 183.8 kB / 336.2 MB, free: 10.73 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.757e-05/0.3636, allocations: 35.45 kB / 336.3 MB, free: 10.7 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.711e-05/0.3636, allocations: 12 kB / 336.3 MB, free: 10.69 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001979/0.3638, allocations: 334.8 kB / 336.6 MB, free: 10.35 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003229/0.3642, allocations: 111.9 kB / 336.7 MB, free: 10.24 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003867/0.3645, allocations: 189.3 kB / 336.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.3649, allocations: 141.7 kB / 337 MB, free: 9.879 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3649, allocations: 0 / 337 MB, free: 9.879 MB / 270.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001171/0.3661, allocations: 498.3 kB / 337.5 MB, free: 9.379 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001543/0.3663, allocations: 177.5 kB / 337.7 MB, free: 9.168 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3663, allocations: 4 kB / 337.7 MB, free: 9.164 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003686/0.3667, allocations: 84.8 kB / 337.8 MB, free: 9.078 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001914/0.3669, allocations: 55.83 kB / 337.8 MB, free: 9.023 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002676/0.3695, allocations: 1.85 MB / 339.7 MB, free: 7.031 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/0.3699, allocations: 71.69 kB / 339.8 MB, free: 6.961 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.3699, allocations: 15.98 kB / 339.8 MB, free: 6.945 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.255e-06/0.3699, allocations: 4 kB / 339.8 MB, free: 6.941 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006723/0.3706, allocations: 310.2 kB / 340.1 MB, free: 6.629 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.3706, allocations: 0.5938 kB / 340.1 MB, free: 6.629 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.284e-05/0.3707, allocations: 32.84 kB / 340.1 MB, free: 6.594 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.3709, allocations: 51.84 kB / 340.2 MB, free: 6.543 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008761/0.3718, allocations: 1.308 MB / 341.5 MB, free: 5.102 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/0.372, allocations: 43.81 kB / 341.5 MB, free: 5.059 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.3721, allocations: 8 kB / 341.5 MB, free: 5.051 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001963/0.3723, allocations: 221.1 kB / 341.7 MB, free: 4.824 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.43e-05/0.3723, allocations: 19.72 kB / 341.7 MB, free: 4.805 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.831e-05/0.3724, allocations: 25.83 kB / 341.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.3724, allocations: 0 / 341.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.3724, allocations: 0 / 341.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3724, allocations: 0 / 341.8 MB, free: 4.785 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003397/0.3727, allocations: 305.5 kB / 342.1 MB, free: 4.438 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3728, allocations: 0 / 342.1 MB, free: 4.438 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001508/0.3729, allocations: 35.91 kB / 342.1 MB, free: 4.402 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002593/0.3732, allocations: 88.78 kB / 342.2 MB, free: 4.312 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.3732, allocations: 0 / 342.2 MB, free: 4.312 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002164/0.3754, allocations: 1.756 MB / 344 MB, free: 2.422 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3754, allocations: 7.984 kB / 344 MB, free: 2.414 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009466/0.3763, allocations: 385.5 kB / 344.3 MB, free: 2.016 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.488e-05/0.3764, allocations: 116.7 kB / 344.4 MB, free: 1.883 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.3765, allocations: 0 / 344.4 MB, free: 1.883 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.3767, allocations: 43.95 kB / 344.5 MB, free: 1.84 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.343e-05/0.3768, allocations: 19.97 kB / 344.5 MB, free: 1.82 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.3768, allocations: 4 kB / 344.5 MB, free: 1.816 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001846/0.377, allocations: 194 kB / 344.7 MB, free: 1.625 MB / 270.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.377, allocations: 0 / 344.7 MB, free: 1.625 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005152/0.3775, allocations: 123.8 kB / 344.8 MB, free: 1.504 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001316/0.3776, allocations: 99.23 kB / 344.9 MB, free: 1.398 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001614/0.3793, allocations: 0.8126 MB / 345.7 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3793, allocations: 3.938 kB / 345.7 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004967/0.3798, allocations: 251 kB / 346 MB, free: 280 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.3801, allocations: 40.48 kB / 346 MB, free: 240 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002711/0.3829, allocations: 1.045 MB / 347.1 MB, free: 15.16 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.3832, allocations: 0.756 MB / 347.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001325/0.3833, allocations: 30.31 kB / 347.9 MB, free: 14.35 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.782e-05/0.3834, allocations: 19.44 kB / 347.9 MB, free: 14.34 MB / 286.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3834, allocations: 0 / 347.9 MB, free: 14.34 MB / 286.1 MB Notification: Performance of Templates: time 0.007371/0.3908, allocations: 3.658 MB / 351.5 MB, free: 10.68 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)