Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001866/0.001866, allocations: 190.9 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009776/0.0009777, allocations: 48.5 kB / 302 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1312, allocations: 49.45 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007485/0.1387, allocations: 6.046 MB / 357.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003665/0.1424, allocations: 1.533 MB / 359.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006649/0.1431, allocations: 19.94 kB / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004289/0.1436, allocations: 170.3 kB / 359.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006226/0.1442, allocations: 285.2 kB / 359.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000907/0.1452, allocations: 411.4 kB / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.1463, allocations: 1.395 MB / 361.3 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005278/0.1469, allocations: 433.2 kB / 361.8 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005485/0.1474, allocations: 0.4906 MB / 362.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005955/0.148, allocations: 0.5641 MB / 362.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00016/0.1482, allocations: 136 kB / 362.9 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002794/0.1485, allocations: 168 kB / 363.1 MB, free: 8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002008/0.1487, allocations: 271.2 kB / 363.4 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004857/0.1492, allocations: 0.591 MB / 364 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001275/0.1505, allocations: 1.538 MB / 365.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1505, allocations: 0 / 365.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1505, allocations: 0 / 365.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.1505, allocations: 0 / 365.5 MB, free: 5.598 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.002654/0.1532, allocations: 1.379 MB / 366.9 MB, free: 4.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.1533, allocations: 12.03 kB / 366.9 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/0.1534, allocations: 111.6 kB / 367 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007846/0.1542, allocations: 0.5577 MB / 367.6 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.355e-05/0.1543, allocations: 66.38 kB / 367.6 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.1544, allocations: 96.28 kB / 367.7 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.1559, allocations: 0.851 MB / 368.6 MB, free: 2.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.156, allocations: 7.938 kB / 368.6 MB, free: 2.426 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.134e-05/0.1561, allocations: 40 kB / 368.6 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.1561, allocations: 20 kB / 368.6 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/0.1577, allocations: 0.8433 MB / 369.5 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2337/0.3914, allocations: 3.199 MB / 372.7 MB, free: 17.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.393, allocations: 0.6725 MB / 373.4 MB, free: 17.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007966/0.3938, allocations: 439.1 kB / 373.8 MB, free: 17.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.863e-05/0.3939, allocations: 12.78 kB / 373.8 MB, free: 17.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.511e-05/0.394, allocations: 41.06 kB / 373.8 MB, free: 17.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=69): time 2.675e-06/0.394, allocations: 0 / 373.8 MB, free: 17.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.00524/0.3992, allocations: 2.257 MB / 376.1 MB, free: 16.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.3993, allocations: 66.28 kB / 376.2 MB, free: 16.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.4003, allocations: 0.6078 MB / 376.8 MB, free: 16.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.453e-05/0.4004, allocations: 38.55 kB / 376.8 MB, free: 16.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003276/0.4008, allocations: 439.7 kB / 377.2 MB, free: 16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002369/0.401, allocations: 267.2 kB / 377.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003168/0.4013, allocations: 149.8 kB / 377.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001804/0.4015, allocations: 385 kB / 378 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007226/0.4023, allocations: 325.5 kB / 378.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008592/0.4031, allocations: 477.8 kB / 378.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.4047, allocations: 0.7994 MB / 379.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.4047, allocations: 1.094 kB / 379.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00243/0.4071, allocations: 1.11 MB / 380.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.4072, allocations: 7.906 kB / 380.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.4072, allocations: 4.266 kB / 380.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006208/0.4078, allocations: 194.9 kB / 380.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009456/0.4088, allocations: 195.1 kB / 381.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003763/0.4125, allocations: 2.887 MB / 384 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008077/0.4134, allocations: 36.25 kB / 384 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.102e-05/0.4134, allocations: 30.17 kB / 384.1 MB, free: 11.78 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.0004252/0.4139, allocations: 243.7 kB / 384.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.414, allocations: 83.03 kB / 384.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001745/0.4142, allocations: 94.56 kB / 384.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.4142, allocations: 12.11 kB / 384.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.332e-05/0.4143, allocations: 2.5 kB / 384.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.4143, allocations: 5.422 kB / 384.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/0.4157, allocations: 0.8811 MB / 385.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.4157, allocations: 1.125 kB / 385.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000805/0.4165, allocations: 151.3 kB / 385.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005914/0.4171, allocations: 182.9 kB / 385.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.03e-05/0.4172, allocations: 22.08 kB / 385.7 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004159/0.4214, allocations: 2.894 MB / 388.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.4214, allocations: 0.5625 kB / 388.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003398/0.4248, allocations: 1.434 MB / 390 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003529/0.4252, allocations: 146.8 kB / 390.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.4253, allocations: 20.06 kB / 390.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006983/0.426, allocations: 53.75 kB / 390.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.4262, allocations: 53.83 kB / 390.3 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-05/0.4263, allocations: 27.23 kB / 390.3 MB, free: 7.848 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006204/0.4269, allocations: 426.7 kB / 390.8 MB, free: 7.652 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4269, allocations: 0 / 390.8 MB, free: 7.652 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001161/0.4281, allocations: 235.8 kB / 391 MB, free: 7.629 MB / 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.0003331/0.4285, allocations: 141.6 kB / 391.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002518/0.431, allocations: 1.034 MB / 392.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.431, allocations: 1.594 kB / 392.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001414/0.4324, allocations: 0.6407 MB / 392.8 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009286/0.4334, allocations: 150.5 kB / 392.9 MB, free: 6.723 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003896/0.4373, allocations: 1.984 MB / 394.9 MB, free: 5.547 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005913/0.4379, allocations: 0.9812 MB / 395.9 MB, free: 4.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005733/0.4385, allocations: 93.81 kB / 396 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001888/0.4387, allocations: 56.86 kB / 396.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4387, allocations: 0 / 396.1 MB, free: 4.793 MB / 302.1 MB Notification: Performance of Templates: time 0.02293/0.4616, allocations: 11.12 MB / 407.2 MB, free: 11.98 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)