Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001272/0.001272, allocations: 115.9 kB / 18.41 MB, free: 4.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001209, allocations: 199.5 kB / 19.36 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001398, allocations: 64.48 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1449, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007875/0.1528, allocations: 6.087 MB / 365 MB, free: 7.227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004743/0.1576, allocations: 1.552 MB / 366.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001076/0.1588, allocations: 19.94 kB / 366.6 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006146/0.1595, allocations: 170.3 kB / 366.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008939/0.1604, allocations: 293.2 kB / 367 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.1619, allocations: 411.4 kB / 367.4 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002414/0.1643, allocations: 1.395 MB / 368.8 MB, free: 3.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008067/0.1651, allocations: 429.2 kB / 369.2 MB, free: 2.945 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/0.1663, allocations: 0.4945 MB / 369.7 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009542/0.1673, allocations: 0.5641 MB / 370.3 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000215/0.1675, allocations: 140 kB / 370.4 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004422/0.168, allocations: 184 kB / 370.6 MB, free: 1.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003244/0.1683, allocations: 275.1 kB / 370.9 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008405/0.1692, allocations: 0.5872 MB / 371.5 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2704/0.4396, allocations: 1.535 MB / 373 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.4397, allocations: 0 / 373 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.4397, allocations: 1.547 kB / 373 MB, free: 13.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.492e-05/0.4398, allocations: 3.562 kB / 373 MB, free: 13.48 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.004621/0.4444, allocations: 1.38 MB / 374.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.4444, allocations: 9.719 kB / 374.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007367/0.4452, allocations: 127 kB / 374.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.4464, allocations: 0.5532 MB / 375.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-05/0.4465, allocations: 64.22 kB / 375.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002587/0.4468, allocations: 92.05 kB / 375.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002231/0.449, allocations: 0.855 MB / 376.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.4491, allocations: 5.531 kB / 376.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.4492, allocations: 39.12 kB / 376.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-05/0.4492, allocations: 20.97 kB / 376.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.4511, allocations: 0.8543 MB / 377 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006425/0.4576, allocations: 3.214 MB / 380.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.4588, allocations: 0.6636 MB / 380.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006947/0.4595, allocations: 433.7 kB / 381.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.509e-05/0.4595, allocations: 15.16 kB / 381.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.4596, allocations: 44.55 kB / 381.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 2.415e-06/0.4596, allocations: 0 / 381.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004595/0.4642, allocations: 2.259 MB / 383.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.4642, allocations: 60.64 kB / 383.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008907/0.4651, allocations: 0.6088 MB / 384.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.298e-05/0.4652, allocations: 37.58 kB / 384.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/0.4655, allocations: 446.2 kB / 384.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001899/0.4657, allocations: 258.9 kB / 385 MB, free: 8.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002789/0.466, allocations: 151 kB / 385.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.4662, allocations: 384 kB / 385.5 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007041/0.4669, allocations: 327.6 kB / 385.8 MB, free: 7.934 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.468, allocations: 472.8 kB / 386.3 MB, free: 7.652 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00227/0.4703, allocations: 0.804 MB / 387.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.4703, allocations: 1.281 kB / 387.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003535/0.4738, allocations: 1.115 MB / 388.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.319e-05/0.4739, allocations: 7.188 kB / 388.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.269e-05/0.4739, allocations: 10 kB / 388.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009586/0.4749, allocations: 189.4 kB / 388.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001461/0.4764, allocations: 202.5 kB / 388.6 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005651/0.482, allocations: 2.878 MB / 391.5 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/0.4835, allocations: 41.28 kB / 391.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.4836, allocations: 36.22 kB / 391.6 MB, free: 4.438 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007154/0.4844, allocations: 233.5 kB / 391.8 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002467/0.4846, allocations: 82.25 kB / 391.9 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002597/0.4849, allocations: 98.91 kB / 392 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/0.4849, allocations: 7.812 kB / 392 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.925e-05/0.485, allocations: 2.688 kB / 392 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.485, allocations: 2.812 kB / 392 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00175/0.4867, allocations: 0.8851 MB / 392.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.4868, allocations: 6.625 kB / 392.9 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.4879, allocations: 149.9 kB / 393 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007167/0.4886, allocations: 184.9 kB / 393.2 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.933e-05/0.4887, allocations: 17.16 kB / 393.2 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004884/0.4936, allocations: 2.893 MB / 396.1 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.4936, allocations: 2.734 kB / 396.1 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004034/0.4977, allocations: 1.429 MB / 397.6 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004122/0.4981, allocations: 146.5 kB / 397.7 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.4983, allocations: 17.16 kB / 397.7 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008288/0.4991, allocations: 56.36 kB / 397.8 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.4993, allocations: 48.61 kB / 397.8 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.437e-05/0.4994, allocations: 27.48 kB / 397.8 MB, free: 276 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008597/0.5003, allocations: 428.7 kB / 398.3 MB, free: 20 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5003, allocations: 0 / 398.3 MB, free: 20 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.001572/0.5019, allocations: 237.5 kB / 398.5 MB, free: 0 / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * 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 (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003752/0.5023, allocations: 146.5 kB / 398.6 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00328/0.5056, allocations: 1.035 MB / 399.7 MB, free: 15.35 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.513e-06/0.5056, allocations: 2.688 kB / 399.7 MB, free: 15.35 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.5076, allocations: 0.6447 MB / 400.3 MB, free: 14.97 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.5088, allocations: 150.1 kB / 400.5 MB, free: 14.89 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005135/0.514, allocations: 1.977 MB / 402.4 MB, free: 13.44 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009261/0.5149, allocations: 0.9852 MB / 403.4 MB, free: 12.42 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000629/0.5156, allocations: 93.45 kB / 403.5 MB, free: 12.33 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002381/0.5158, allocations: 62.03 kB / 403.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5158, allocations: 0 / 403.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of Templates: time 0.03128/0.5471, allocations: 11.1 MB / 414.7 MB, free: 1.332 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)