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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001635/0.001635, allocations: 196.5 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008317/0.000832, allocations: 89.05 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.462e-06/6.472e-06, allocations: 0 / 343.1 MB, free: 8.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08722/0.08724, allocations: 51.49 MB / 394.6 MB, free: 5.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2331/0.3204, allocations: 83.05 MB / 477.7 MB, free: 9.918 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.3207, allocations: 74.89 kB / 477.8 MB, free: 9.891 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04831/0.369, allocations: 15.64 MB / 493.4 MB, free: 13.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.443e-05/0.3691, allocations: 20 kB / 493.4 MB, free: 13.12 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.003844/0.373, allocations: 1.147 MB / 494.6 MB, free: 11.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.373, allocations: 8.031 kB / 494.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007025/0.3738, allocations: 130.6 kB / 494.7 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/0.3753, allocations: 0.5592 MB / 495.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.718e-05/0.3753, allocations: 32 kB / 495.3 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002236/0.3756, allocations: 55.91 kB / 495.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00206/0.3776, allocations: 0.7288 MB / 496.1 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.3795, allocations: 0.6718 MB / 496.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.3796, allocations: 0 / 496.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.3797, allocations: 0 / 496.7 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.022e-05/0.3797, allocations: 20 kB / 496.8 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008196/0.3879, allocations: 3.152 MB / 499.9 MB, free: 7.941 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000942/0.3889, allocations: 387.1 kB / 0.4886 GB, free: 7.703 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005496/0.3895, allocations: 371.3 kB / 0.4889 GB, free: 7.492 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.071e-05/0.3896, allocations: 12.64 kB / 0.4889 GB, free: 7.477 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.3896, allocations: 50.22 kB / 0.489 GB, free: 7.426 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 2.745e-06/0.3896, allocations: 0 / 0.489 GB, free: 7.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.006931/0.3966, allocations: 2.462 MB / 0.4914 GB, free: 5.418 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.3966, allocations: 64.22 kB / 0.4914 GB, free: 5.344 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005089/0.3971, allocations: 451.7 kB / 0.4919 GB, free: 5.008 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.028e-05/0.3972, allocations: 29.64 kB / 0.4919 GB, free: 4.973 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.3974, allocations: 362.9 kB / 0.4922 GB, free: 4.652 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001812/0.3975, allocations: 252.9 kB / 0.4925 GB, free: 4.434 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.014e-05/0.3976, allocations: 4 kB / 0.4925 GB, free: 4.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3978, allocations: 381.4 kB / 0.4929 GB, free: 4.078 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000489/0.3983, allocations: 271.4 kB / 0.4931 GB, free: 3.938 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005196/0.3988, allocations: 409.7 kB / 0.4935 GB, free: 3.625 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001869/0.4007, allocations: 0.5837 MB / 0.4941 GB, free: 3.074 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.4007, allocations: 0 / 0.4941 GB, free: 3.074 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003094/0.4038, allocations: 1.217 MB / 0.4953 GB, free: 1.848 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.4038, allocations: 8 kB / 0.4953 GB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4038, allocations: 4 kB / 0.4953 GB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000557/0.4044, allocations: 178.7 kB / 0.4954 GB, free: 1.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009656/0.4054, allocations: 211.7 kB / 0.4957 GB, free: 1.453 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003338/0.4087, allocations: 2.461 MB / 0.4981 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006598/0.4094, allocations: 27.97 kB / 0.4981 GB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.142e-05/0.4095, allocations: 36 kB / 0.4981 GB, free: 14.82 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.0001716/0.4096, allocations: 120.7 kB / 0.4982 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.4098, allocations: 75.14 kB / 0.4983 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001926/0.41, allocations: 86.5 kB / 0.4984 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.41, allocations: 8 kB / 0.4984 GB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.41, allocations: 4 kB / 0.4984 GB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.41, allocations: 3.984 kB / 0.4984 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000938/0.411, allocations: 0.7628 MB / 0.4991 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.411, allocations: 0 / 0.4991 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000816/0.4118, allocations: 163.9 kB / 0.4993 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005178/0.4123, allocations: 180.6 kB / 0.4995 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.688e-05/0.4124, allocations: 15.92 kB / 0.4995 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003348/0.4157, allocations: 2.477 MB / 0.5019 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4158, allocations: 8 kB / 0.5019 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003259/0.419, allocations: 1.51 MB / 0.5034 GB, free: 9.234 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.4192, allocations: 140.2 kB / 0.5035 GB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.4194, allocations: 8.547 kB / 0.5035 GB, free: 9.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006676/0.42, allocations: 55.97 kB / 0.5036 GB, free: 9.016 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.4201, allocations: 44.48 kB / 0.5036 GB, free: 8.973 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.521e-05/0.4202, allocations: 27.98 kB / 0.5037 GB, free: 8.945 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004556/0.4207, allocations: 335 kB / 0.504 GB, free: 8.621 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008159/0.4215, allocations: 219.9 kB / 0.5042 GB, free: 8.406 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.0002408/0.4218, allocations: 141.5 kB / 0.5043 GB, free: 8.262 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.4234, allocations: 0.8633 MB / 0.5052 GB, free: 7.395 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4234, allocations: 0 / 0.5052 GB, free: 7.395 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.4245, allocations: 0.5358 MB / 0.5057 GB, free: 6.852 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005139/0.425, allocations: 87.55 kB / 0.5058 GB, free: 6.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003024/0.4281, allocations: 1.649 MB / 0.5074 GB, free: 5.082 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007465/0.4288, allocations: 1.062 MB / 0.5084 GB, free: 3.996 MB / 378.7 MB Notification: Performance of SimCode: time 7.81e-07/0.4288, allocations: 7.938 kB / 0.5084 GB, free: 3.988 MB / 378.7 MB Notification: Performance of Templates: time 0.01854/0.4474, allocations: 10.77 MB / 0.5189 GB, free: 9.391 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