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.001427/0.001427, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000872/0.000872, allocations: 92.53 kB / 292.1 MB, free: 5.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.627e-05/3.631e-05, allocations: 7.984 kB / 350.5 MB, free: 2.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1076, allocations: 51.48 MB / 402 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3188/0.4265, allocations: 83.79 MB / 485.8 MB, free: 5.766 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.4267, allocations: 82.59 kB / 485.9 MB, free: 5.727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03987/0.4666, allocations: 15.95 MB / 0.4901 GB, free: 7.418 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4666, allocations: 7.938 kB / 0.4901 GB, free: 7.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.269e-05/0.4667, allocations: 27.98 kB / 0.4901 GB, free: 7.383 MB / 362.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.00212/0.4688, allocations: 1.11 MB / 0.4912 GB, free: 6.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.4689, allocations: 12.59 kB / 0.4912 GB, free: 6.219 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000331/0.4692, allocations: 131.4 kB / 0.4913 GB, free: 6.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008416/0.4701, allocations: 0.5468 MB / 0.4919 GB, free: 5.504 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.122e-05/0.4701, allocations: 70 kB / 0.4919 GB, free: 5.434 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.4703, allocations: 88 kB / 0.492 GB, free: 5.348 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.4716, allocations: 0.7984 MB / 0.4928 GB, free: 4.543 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.4717, allocations: 4 kB / 0.4928 GB, free: 4.539 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.331e-05/0.4718, allocations: 36 kB / 0.4928 GB, free: 4.504 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.4718, allocations: 20 kB / 0.4929 GB, free: 4.484 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.4731, allocations: 0.7811 MB / 0.4936 GB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005301/0.4784, allocations: 3.291 MB / 0.4968 GB, free: 300 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000945/0.4794, allocations: 0.633 MB / 0.4975 GB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005462/0.4799, allocations: 394.5 kB / 0.4978 GB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.585e-05/0.48, allocations: 16.45 kB / 0.4978 GB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.4801, allocations: 43.12 kB / 0.4979 GB, free: 15.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.274e-06/0.4801, allocations: 0 / 0.4979 GB, free: 15.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.003211/0.4833, allocations: 1.872 MB / 0.4997 GB, free: 13.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.4833, allocations: 60.19 kB / 0.4998 GB, free: 13.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005946/0.4839, allocations: 0.523 MB / 0.5003 GB, free: 12.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.11e-05/0.484, allocations: 37.7 kB / 0.5003 GB, free: 12.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002794/0.4843, allocations: 451.2 kB / 0.5008 GB, free: 12.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/0.4845, allocations: 256.2 kB / 0.501 GB, free: 11.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.444e-05/0.4845, allocations: 24 kB / 0.501 GB, free: 11.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.4847, allocations: 386.8 kB / 0.5014 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004824/0.4852, allocations: 286 kB / 0.5017 GB, free: 11.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005914/0.4858, allocations: 432.4 kB / 0.5021 GB, free: 10.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005597/0.4863, allocations: 342 kB / 0.5024 GB, free: 10.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4864, allocations: 0 / 0.5024 GB, free: 10.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001736/0.4881, allocations: 1.039 MB / 0.5034 GB, free: 9.367 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.4881, allocations: 8 kB / 0.5034 GB, free: 9.359 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.4881, allocations: 5.219 kB / 0.5034 GB, free: 9.355 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005169/0.4887, allocations: 186.1 kB / 0.5036 GB, free: 9.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008531/0.4895, allocations: 211.7 kB / 0.5038 GB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003387/0.4929, allocations: 2.623 MB / 0.5064 GB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006181/0.4936, allocations: 40.05 kB / 0.5064 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.626e-05/0.4936, allocations: 35.98 kB / 0.5064 GB, free: 6.133 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 () * 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.000209/0.4938, allocations: 151.9 kB / 0.5066 GB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.494, allocations: 83.06 kB / 0.5067 GB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002131/0.4942, allocations: 100.6 kB / 0.5068 GB, free: 5.797 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.4942, allocations: 8 kB / 0.5068 GB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.4942, allocations: 0 / 0.5068 GB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.4942, allocations: 3.984 kB / 0.5068 GB, free: 5.785 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.4953, allocations: 0.8846 MB / 0.5076 GB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.4953, allocations: 2.062 kB / 0.5076 GB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007576/0.4961, allocations: 159.8 kB / 0.5078 GB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004807/0.4966, allocations: 180.7 kB / 0.508 GB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.374e-05/0.4967, allocations: 19.98 kB / 0.508 GB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003322/0.5, allocations: 2.629 MB / 0.5105 GB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.5, allocations: 4 kB / 0.5106 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002084/0.5021, allocations: 1.326 MB / 0.5118 GB, free: 392 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001638/0.5023, allocations: 148.2 kB / 0.512 GB, free: 224 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.784e-05/0.5024, allocations: 19.95 kB / 0.512 GB, free: 204 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006159/0.503, allocations: 63.95 kB / 0.5121 GB, free: 140 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.5031, allocations: 56.7 kB / 0.5121 GB, free: 84 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.358e-05/0.5032, allocations: 23.98 kB / 0.5121 GB, free: 60 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004683/0.5037, allocations: 415.2 kB / 0.5125 GB, free: 15.66 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5037, allocations: 0 / 0.5125 GB, free: 15.66 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007743/0.5044, allocations: 255.9 kB / 0.5128 GB, free: 15.41 MB / 394.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 () * 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.0002374/0.5047, allocations: 139.2 kB / 0.5129 GB, free: 15.26 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001777/0.5065, allocations: 0.9628 MB / 0.5139 GB, free: 14.29 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.5065, allocations: 4 kB / 0.5139 GB, free: 14.29 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.5076, allocations: 0.5966 MB / 0.5144 GB, free: 13.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005461/0.5082, allocations: 124.4 kB / 0.5146 GB, free: 13.56 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.5109, allocations: 1.654 MB / 0.5162 GB, free: 11.88 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/0.5114, allocations: 1.001 MB / 0.5172 GB, free: 10.85 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003912/0.5118, allocations: 88.61 kB / 0.5172 GB, free: 10.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.512, allocations: 63.41 kB / 0.5173 GB, free: 10.71 MB / 394.7 MB Notification: Performance of SimCode: time 5.11e-07/0.512, allocations: 0 / 0.5173 GB, free: 10.71 MB / 394.7 MB Notification: Performance of Templates: time 0.01663/0.5286, allocations: 10.04 MB / 0.5271 GB, free: 0.8594 MB / 394.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