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.0009566/0.0009566, allocations: 196.7 kB / 8.765 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009076/0.0009077, allocations: 99.22 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.461e-05/2.465e-05, allocations: 8 kB / 343.7 MB, free: 8.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1083, allocations: 51.48 MB / 395.2 MB, free: 4.777 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3611/0.4695, allocations: 83.12 MB / 478.3 MB, free: 9.895 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001938/0.4697, allocations: 72.52 kB / 478.4 MB, free: 9.867 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03928/0.509, allocations: 15.8 MB / 494.2 MB, free: 12.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.5091, allocations: 4 kB / 494.2 MB, free: 12.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.771e-05/0.5091, allocations: 19.98 kB / 494.2 MB, free: 12.89 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.002369/0.5115, allocations: 1.123 MB / 495.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.348e-05/0.5116, allocations: 8.031 kB / 495.3 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004118/0.512, allocations: 135.4 kB / 495.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009291/0.5129, allocations: 0.5575 MB / 496 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.199e-05/0.513, allocations: 28 kB / 496 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.5131, allocations: 52 kB / 496.1 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00129/0.5144, allocations: 0.7278 MB / 496.8 MB, free: 10.65 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.5156, allocations: 0.6741 MB / 497.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.5157, allocations: 4 kB / 497.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.969e-05/0.5158, allocations: 0 / 497.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/0.5158, allocations: 20 kB / 497.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005023/0.5208, allocations: 3.138 MB / 0.4889 GB, free: 7.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008621/0.5217, allocations: 0.6007 MB / 0.4895 GB, free: 7.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004716/0.5222, allocations: 373 kB / 0.4899 GB, free: 7.195 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.846e-05/0.5222, allocations: 12.55 kB / 0.4899 GB, free: 7.184 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.5223, allocations: 45.81 kB / 0.4899 GB, free: 7.137 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 2.174e-06/0.5223, allocations: 4 kB / 0.4899 GB, free: 7.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.006216/0.5285, allocations: 2.43 MB / 0.4923 GB, free: 5.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.5286, allocations: 56.19 kB / 0.4923 GB, free: 5.094 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004971/0.5291, allocations: 448.9 kB / 0.4928 GB, free: 4.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.15e-05/0.5291, allocations: 33.7 kB / 0.4928 GB, free: 4.719 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002727/0.5294, allocations: 443.8 kB / 0.4932 GB, free: 4.293 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.5296, allocations: 256.2 kB / 0.4935 GB, free: 4.039 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.5296, allocations: 0 / 0.4935 GB, free: 4.039 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.5298, allocations: 382.8 kB / 0.4938 GB, free: 3.656 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004392/0.5302, allocations: 270.6 kB / 0.4941 GB, free: 3.391 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005212/0.5308, allocations: 408.9 kB / 0.4945 GB, free: 2.945 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/0.5324, allocations: 0.5731 MB / 0.495 GB, free: 2.375 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.5324, allocations: 4 kB / 0.495 GB, free: 2.371 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002895/0.5353, allocations: 1.199 MB / 0.4962 GB, free: 1.156 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.5354, allocations: 8 kB / 0.4962 GB, free: 1.148 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.5354, allocations: 7.953 kB / 0.4962 GB, free: 1.141 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005435/0.536, allocations: 170.2 kB / 0.4964 GB, free: 0.9727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000875/0.5368, allocations: 211.8 kB / 0.4966 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003248/0.5401, allocations: 2.532 MB / 0.4991 GB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006486/0.5408, allocations: 19.98 kB / 0.4991 GB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.435e-05/0.5408, allocations: 36.05 kB / 0.4991 GB, free: 14.07 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,68.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001691/0.541, allocations: 120.7 kB / 0.4992 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.5411, allocations: 75.11 kB / 0.4993 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002014/0.5413, allocations: 89.33 kB / 0.4994 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.5414, allocations: 8 kB / 0.4994 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.5414, allocations: 0 / 0.4994 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.5414, allocations: 3.984 kB / 0.4994 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009597/0.5424, allocations: 0.7682 MB / 0.5002 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.5424, allocations: 0 / 0.5002 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007386/0.5431, allocations: 155.8 kB / 0.5003 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004867/0.5436, allocations: 182.1 kB / 0.5005 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.438e-05/0.5437, allocations: 11.98 kB / 0.5005 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003197/0.5469, allocations: 2.552 MB / 0.503 GB, free: 9.953 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.5469, allocations: 0 / 0.503 GB, free: 9.953 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003108/0.55, allocations: 1.494 MB / 0.5044 GB, free: 8.441 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.5502, allocations: 144.2 kB / 0.5046 GB, free: 8.281 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.574e-05/0.5503, allocations: 0 / 0.5046 GB, free: 8.281 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006016/0.5509, allocations: 51.95 kB / 0.5046 GB, free: 8.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.551, allocations: 57.58 kB / 0.5047 GB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.338e-05/0.5511, allocations: 23.98 kB / 0.5047 GB, free: 8.148 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003704/0.5514, allocations: 342.9 kB / 0.505 GB, free: 7.816 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5515, allocations: 0 / 0.505 GB, free: 7.816 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007795/0.5522, allocations: 216 kB / 0.5052 GB, free: 7.605 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 () * 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.0002367/0.5525, allocations: 130.1 kB / 0.5054 GB, free: 7.473 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.5541, allocations: 0.9013 MB / 0.5062 GB, free: 6.566 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.5541, allocations: 0 / 0.5062 GB, free: 6.566 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001069/0.5552, allocations: 0.579 MB / 0.5068 GB, free: 5.977 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005359/0.5558, allocations: 101.6 kB / 0.5069 GB, free: 5.883 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.5583, allocations: 1.601 MB / 0.5085 GB, free: 4.258 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.5588, allocations: 1.005 MB / 0.5094 GB, free: 3.223 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003766/0.5592, allocations: 85.03 kB / 0.5095 GB, free: 3.148 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/0.5594, allocations: 51.42 kB / 0.5096 GB, free: 3.098 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5594, allocations: 0 / 0.5096 GB, free: 3.098 MB / 378.7 MB Notification: Performance of Templates: time 0.01486/0.5743, allocations: 8.841 MB / 0.5182 GB, free: 10.42 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_ref,R1.alpha,R2.R,R2.T,R2.T_ref,R2.alpha,R3.R,R3.T,R3.T_ref,R3.alpha,R4.R,R4.T,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.Tauf,Transistor1.Tr.Taur,Transistor1.Tr.Tnom,Transistor1.Tr.UIC,Transistor1.Tr.Vak,Transistor1.Tr.Vt,Transistor1.Tr.XTB,Transistor1.Tr.XTI,Transistor1.Tr.useSubstrate,Transistor1.Tr.vcs,Transistor1.ct.C,Transistor1.ct.v,Transistor1.rtb.R,Transistor1.rtb.T,Transistor1.rtb.T_ref,Transistor1.rtb.alpha,Transistor1.rtc.R,Transistor1.rtc.T,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.Tauf,Transistor2.Tr.Taur,Transistor2.Tr.Tnom,Transistor2.Tr.UIC,Transistor2.Tr.Vak,Transistor2.Tr.Vt,Transistor2.Tr.XTB,Transistor2.Tr.XTI,Transistor2.Tr.useSubstrate,Transistor2.Tr.vcs,Transistor2.ct.C,Transistor2.ct.v,Transistor2.rtb.R,Transistor2.rtb.T,Transistor2.rtb.T_ref,Transistor2.rtb.alpha,Transistor2.rtc.R,Transistor2.rtc.T,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