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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001065/0.001065, allocations: 201.1 kB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.563/1.563, allocations: 226.5 MB / 245.4 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008632/0.0008632, allocations: 95.17 kB / 297.5 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002577/0.0002577, allocations: 11.98 kB / 358.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.335, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.4574, allocations: 83.81 MB / 493.2 MB, free: 7.691 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.4577, allocations: 75.97 kB / 493.3 MB, free: 7.617 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04419/0.5019, allocations: 15.96 MB / 0.4973 GB, free: 7.582 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.502, allocations: 0 / 0.4973 GB, free: 7.582 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.547e-05/0.5021, allocations: 24 kB / 0.4973 GB, free: 7.559 MB / 378.7 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.003348/0.5054, allocations: 1.196 MB / 0.4985 GB, free: 6.309 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.964e-05/0.5055, allocations: 8.031 kB / 0.4985 GB, free: 6.301 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006037/0.5061, allocations: 135.6 kB / 0.4986 GB, free: 6.168 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001209/0.5073, allocations: 0.5829 MB / 0.4992 GB, free: 5.543 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.288e-05/0.5075, allocations: 62.38 kB / 0.4992 GB, free: 5.484 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002317/0.5077, allocations: 88.38 kB / 0.4993 GB, free: 5.398 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002151/0.5099, allocations: 0.8591 MB / 0.5002 GB, free: 4.531 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.647e-05/0.5099, allocations: 192 / 0.5002 GB, free: 4.531 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.51, allocations: 39.94 kB / 0.5002 GB, free: 4.492 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.278e-05/0.51, allocations: 20 kB / 0.5002 GB, free: 4.473 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.512, allocations: 0.8746 MB / 0.5011 GB, free: 3.598 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006946/0.519, allocations: 3.3 MB / 0.5043 GB, free: 180 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2973/0.8163, allocations: 0.6686 MB / 0.505 GB, free: 89.19 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.8177, allocations: 448.5 kB / 0.5054 GB, free: 89.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.139e-05/0.8178, allocations: 13.11 kB / 0.5054 GB, free: 89.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.415e-05/0.8179, allocations: 41.67 kB / 0.5054 GB, free: 89.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 5.08e-06/0.8179, allocations: 0.7188 kB / 0.5054 GB, free: 89.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.008106/0.826, allocations: 2.443 MB / 0.5078 GB, free: 88.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.8262, allocations: 61 kB / 0.5079 GB, free: 88.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/0.8275, allocations: 0.6015 MB / 0.5085 GB, free: 88.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.956e-05/0.8276, allocations: 40.73 kB / 0.5085 GB, free: 88.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004389/0.828, allocations: 446.4 kB / 0.5089 GB, free: 88.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003292/0.8284, allocations: 261.3 kB / 0.5092 GB, free: 88.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.415e-05/0.8285, allocations: 15.94 kB / 0.5092 GB, free: 88.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.8287, allocations: 385.6 kB / 0.5096 GB, free: 87.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.8298, allocations: 336 kB / 0.5099 GB, free: 87.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001341/0.8311, allocations: 480.1 kB / 0.5103 GB, free: 87.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002373/0.8335, allocations: 0.8276 MB / 0.5111 GB, free: 87.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.8335, allocations: 3.125 kB / 0.5112 GB, free: 87.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003261/0.8368, allocations: 1.138 MB / 0.5123 GB, free: 87.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.895e-05/0.8369, allocations: 3.906 kB / 0.5123 GB, free: 87.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.8369, allocations: 3.562 kB / 0.5123 GB, free: 87.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007666/0.8377, allocations: 192 kB / 0.5125 GB, free: 87.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.8389, allocations: 205.2 kB / 0.5126 GB, free: 87.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004093/0.8431, allocations: 2.635 MB / 0.5152 GB, free: 85.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.8441, allocations: 46.47 kB / 0.5153 GB, free: 85.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.8443, allocations: 35.38 kB / 0.5153 GB, free: 85.24 MB / 378.7 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 (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: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005664/0.8448, allocations: 231.9 kB / 0.5155 GB, free: 85.06 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.845, allocations: 80.44 kB / 0.5156 GB, free: 85.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002219/0.8453, allocations: 95.3 kB / 0.5157 GB, free: 84.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.8453, allocations: 10.75 kB / 0.5157 GB, free: 84.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.694e-05/0.8453, allocations: 3.938 kB / 0.5157 GB, free: 84.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.8453, allocations: 7.172 kB / 0.5157 GB, free: 84.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001507/0.8468, allocations: 0.8804 MB / 0.5166 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.8469, allocations: 0 / 0.5166 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.8479, allocations: 157.1 kB / 0.5167 GB, free: 84.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007451/0.8487, allocations: 184.2 kB / 0.5169 GB, free: 84.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.697e-05/0.8488, allocations: 19.2 kB / 0.5169 GB, free: 84.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004337/0.8531, allocations: 2.637 MB / 0.5195 GB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.8531, allocations: 0 / 0.5195 GB, free: 82.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003804/0.857, allocations: 1.462 MB / 0.5209 GB, free: 81.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000332/0.8573, allocations: 156.6 kB / 0.5211 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.8575, allocations: 11.88 kB / 0.5211 GB, free: 81.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009094/0.8584, allocations: 65.75 kB / 0.5211 GB, free: 81.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001782/0.8586, allocations: 51.41 kB / 0.5212 GB, free: 81.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.534e-05/0.8587, allocations: 26.02 kB / 0.5212 GB, free: 81.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008061/0.8595, allocations: 420.7 kB / 0.5216 GB, free: 81.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.8595, allocations: 0 / 0.5216 GB, free: 81.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001511/0.8611, allocations: 262.2 kB / 0.5219 GB, free: 81.35 MB / 378.7 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 (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: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003461/0.8614, allocations: 145.9 kB / 0.522 GB, free: 81.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003288/0.8647, allocations: 1.058 MB / 0.523 GB, free: 80.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.8647, allocations: 0 / 0.523 GB, free: 80.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001897/0.8666, allocations: 0.6488 MB / 0.5237 GB, free: 80.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.868, allocations: 145.6 kB / 0.5238 GB, free: 80.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00511/0.8731, allocations: 2.421 MB / 0.5262 GB, free: 78.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006041/0.8737, allocations: 0.9798 MB / 0.5271 GB, free: 78.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008019/0.8745, allocations: 88.03 kB / 0.5272 GB, free: 78.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002558/0.8748, allocations: 58.56 kB / 0.5273 GB, free: 78.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/0.8748, allocations: 4 kB / 0.5273 GB, free: 78.2 MB / 378.7 MB Notification: Performance of Templates: time 0.02426/0.8991, allocations: 10.18 MB / 0.5372 GB, free: 71.97 MB / 378.7 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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[5004]=1.000000 File[5004]=0.000000 " Variables in the reference: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 Variables in the result:C1.C,C1.v,C2.C,C2.v,C3.C,C3.v,C4.C,C4.v,C5.C,C5.v,I1.I,I1.duration,I1.offset,I1.signalSource.duration,I1.signalSource.height,I1.signalSource.offset,I1.signalSource.startTime,I1.startTime,R1.R,R1.T,R1.T_heatPort,R1.T_ref,R1.alpha,R2.R,R2.T,R2.T_heatPort,R2.T_ref,R2.alpha,R3.R,R3.T,R3.T_heatPort,R3.T_ref,R3.alpha,R4.R,R4.T,R4.T_heatPort,R4.T_ref,R4.alpha,Transistor1.Tr.Bf,Transistor1.Tr.Br,Transistor1.Tr.C.v,Transistor1.Tr.Ccs,Transistor1.Tr.Cjc,Transistor1.Tr.Cje,Transistor1.Tr.EG,Transistor1.Tr.EMax,Transistor1.Tr.EMin,Transistor1.Tr.Gbc,Transistor1.Tr.Gbe,Transistor1.Tr.IC,Transistor1.Tr.Is,Transistor1.Tr.Mc,Transistor1.Tr.Me,Transistor1.Tr.NF,Transistor1.Tr.NR,Transistor1.Tr.Phic,Transistor1.Tr.Phie,Transistor1.Tr.T,Transistor1.Tr.T_heatPort,Transistor1.Tr.Tauf,Transistor1.Tr.Taur,Transistor1.Tr.Tnom,Transistor1.Tr.UIC,Transistor1.Tr.Vak,Transistor1.Tr.Vt,Transistor1.Tr.XTB,Transistor1.Tr.XTI,Transistor1.Tr.bf_t,Transistor1.Tr.br_t,Transistor1.Tr.is_t,Transistor1.Tr.useSubstrate,Transistor1.Tr.vcs,Transistor1.Tr.vt_t,Transistor1.ct.C,Transistor1.ct.v,Transistor1.rtb.R,Transistor1.rtb.T,Transistor1.rtb.T_heatPort,Transistor1.rtb.T_ref,Transistor1.rtb.alpha,Transistor1.rtc.R,Transistor1.rtc.T,Transistor1.rtc.T_heatPort,Transistor1.rtc.T_ref,Transistor1.rtc.alpha,Transistor2.Tr.Bf,Transistor2.Tr.Br,Transistor2.Tr.C.v,Transistor2.Tr.Ccs,Transistor2.Tr.Cjc,Transistor2.Tr.Cje,Transistor2.Tr.EG,Transistor2.Tr.EMax,Transistor2.Tr.EMin,Transistor2.Tr.Gbc,Transistor2.Tr.Gbe,Transistor2.Tr.IC,Transistor2.Tr.Is,Transistor2.Tr.Mc,Transistor2.Tr.Me,Transistor2.Tr.NF,Transistor2.Tr.NR,Transistor2.Tr.Phic,Transistor2.Tr.Phie,Transistor2.Tr.T,Transistor2.Tr.T_heatPort,Transistor2.Tr.Tauf,Transistor2.Tr.Taur,Transistor2.Tr.Tnom,Transistor2.Tr.UIC,Transistor2.Tr.Vak,Transistor2.Tr.Vt,Transistor2.Tr.XTB,Transistor2.Tr.XTI,Transistor2.Tr.bf_t,Transistor2.Tr.br_t,Transistor2.Tr.is_t,Transistor2.Tr.useSubstrate,Transistor2.Tr.vcs,Transistor2.Tr.vt_t,Transistor2.ct.C,Transistor2.ct.v,Transistor2.rtb.R,Transistor2.rtb.T,Transistor2.rtb.T_heatPort,Transistor2.rtb.T_ref,Transistor2.rtb.alpha,Transistor2.rtc.R,Transistor2.rtc.T,Transistor2.rtc.T_heatPort,Transistor2.rtc.T_ref,Transistor2.rtc.alpha,V1.V,V1.damping,V1.f,V1.offset,V1.phase,V1.signalSource.amplitude,V1.signalSource.damping,V1.signalSource.f,V1.signalSource.offset,V1.signalSource.phase,V1.signalSource.startTime,V1.startTime,V2.V,V2.duration,V2.offset,V2.signalSource.duration,V2.signalSource.height,V2.signalSource.offset,V2.signalSource.startTime,V2.startTime,time