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.0009544/0.0009544, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.171/1.171, allocations: 227.2 MB / 245 MB, free: 5.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008451/0.0008451, allocations: 98.53 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002332/0.0002332, allocations: 7.984 kB / 357.9 MB, free: 9.328 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1909/0.1911, allocations: 51.49 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08835/0.2795, allocations: 83.86 MB / 493.3 MB, free: 6.738 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/0.2797, allocations: 71.97 kB / 493.3 MB, free: 6.668 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03958/0.3193, allocations: 15.97 MB / 0.4974 GB, free: 6.637 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3194, allocations: 0 / 0.4974 GB, free: 6.637 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.765e-05/0.3194, allocations: 24 kB / 0.4974 GB, free: 6.613 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.002206/0.3216, allocations: 1.204 MB / 0.4986 GB, free: 5.355 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3217, allocations: 8.031 kB / 0.4986 GB, free: 5.348 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003097/0.322, allocations: 130.6 kB / 0.4987 GB, free: 5.219 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00075/0.3227, allocations: 0.5627 MB / 0.4993 GB, free: 4.613 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.591e-05/0.3228, allocations: 66 kB / 0.4993 GB, free: 4.547 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.3229, allocations: 84 kB / 0.4994 GB, free: 4.465 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001375/0.3243, allocations: 0.8545 MB / 0.5002 GB, free: 3.602 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.3243, allocations: 4 kB / 0.5002 GB, free: 3.598 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-05/0.3244, allocations: 43.98 kB / 0.5003 GB, free: 3.555 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.3245, allocations: 20 kB / 0.5003 GB, free: 3.535 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.3259, allocations: 0.8746 MB / 0.5012 GB, free: 2.664 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.155/0.4809, allocations: 3.284 MB / 0.5044 GB, free: 87.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.4821, allocations: 0.6809 MB / 0.505 GB, free: 87.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.628e-05/0.4822, allocations: 14.59 kB / 0.505 GB, free: 87.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.4822, allocations: 46.16 kB / 0.5051 GB, free: 87.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.424e-06/0.4822, allocations: 0.7812 kB / 0.5051 GB, free: 87.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.004493/0.4867, allocations: 2.441 MB / 0.5075 GB, free: 87.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.637e-05/0.4867, allocations: 61.61 kB / 0.5075 GB, free: 87.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006447/0.4874, allocations: 0.5295 MB / 0.508 GB, free: 87.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.665e-05/0.4874, allocations: 42.58 kB / 0.5081 GB, free: 87.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002278/0.4877, allocations: 442.6 kB / 0.5085 GB, free: 86.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.4878, allocations: 264.4 kB / 0.5088 GB, free: 86.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.129e-05/0.4879, allocations: 16.88 kB / 0.5088 GB, free: 86.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.488, allocations: 384.3 kB / 0.5091 GB, free: 86.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006855/0.4887, allocations: 337.3 kB / 0.5095 GB, free: 86.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006841/0.4894, allocations: 475.6 kB / 0.5099 GB, free: 86.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006565/0.49, allocations: 396.7 kB / 0.5103 GB, free: 86.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.49, allocations: 1.375 kB / 0.5103 GB, free: 86.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001774/0.4918, allocations: 1.133 MB / 0.5114 GB, free: 86.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.4918, allocations: 6.531 kB / 0.5114 GB, free: 86.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.4918, allocations: 6.406 kB / 0.5114 GB, free: 86.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004777/0.4923, allocations: 188.6 kB / 0.5116 GB, free: 86.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008284/0.4932, allocations: 206.7 kB / 0.5118 GB, free: 86.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002705/0.4959, allocations: 2.689 MB / 0.5144 GB, free: 84.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006111/0.4965, allocations: 40.62 kB / 0.5145 GB, free: 84.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.637e-05/0.4966, allocations: 37.48 kB / 0.5145 GB, free: 84.21 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.0002862/0.4969, allocations: 225.5 kB / 0.5147 GB, free: 84.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.497, allocations: 84.3 kB / 0.5148 GB, free: 83.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001584/0.4971, allocations: 98.89 kB / 0.5149 GB, free: 83.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.4972, allocations: 10.78 kB / 0.5149 GB, free: 83.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-05/0.4972, allocations: 0 / 0.5149 GB, free: 83.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.4972, allocations: 6.797 kB / 0.5149 GB, free: 83.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008184/0.498, allocations: 0.8911 MB / 0.5158 GB, free: 83.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.498, allocations: 0 / 0.5158 GB, free: 83.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006972/0.4987, allocations: 154.4 kB / 0.5159 GB, free: 83.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004365/0.4992, allocations: 181.4 kB / 0.5161 GB, free: 83.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.005e-05/0.4992, allocations: 22.39 kB / 0.5161 GB, free: 83.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002614/0.5019, allocations: 2.686 MB / 0.5187 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.5019, allocations: 6.781 kB / 0.5187 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002051/0.5039, allocations: 1.456 MB / 0.5202 GB, free: 80.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.504, allocations: 152.9 kB / 0.5203 GB, free: 80.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.241e-05/0.5041, allocations: 15.5 kB / 0.5203 GB, free: 80.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005968/0.5047, allocations: 63.58 kB / 0.5204 GB, free: 80.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.5e-05/0.5049, allocations: 53.25 kB / 0.5204 GB, free: 80.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.605e-05/0.5049, allocations: 30.3 kB / 0.5205 GB, free: 80.53 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003461/0.5053, allocations: 418.5 kB / 0.5209 GB, free: 80.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5053, allocations: 0 / 0.5209 GB, free: 80.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006934/0.506, allocations: 254.5 kB / 0.5211 GB, free: 80.3 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.0001897/0.5062, allocations: 146.6 kB / 0.5212 GB, free: 80.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.5079, allocations: 1.058 MB / 0.5223 GB, free: 79.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.508, allocations: 3.469 kB / 0.5223 GB, free: 79.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.509, allocations: 0.6401 MB / 0.5229 GB, free: 79.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005015/0.5095, allocations: 132.9 kB / 0.523 GB, free: 79.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002438/0.512, allocations: 2.432 MB / 0.5254 GB, free: 77.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.5123, allocations: 0.9957 MB / 0.5264 GB, free: 77.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003682/0.5127, allocations: 92.45 kB / 0.5265 GB, free: 77.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.5128, allocations: 58.84 kB / 0.5265 GB, free: 77.17 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.5128, allocations: 0 / 0.5265 GB, free: 77.17 MB / 378.7 MB Notification: Performance of Templates: time 0.01337/0.5262, allocations: 10.05 MB / 0.5363 GB, free: 71.38 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/jenkins/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