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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.002034/0.002034, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003659/0.003659, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.716/2.716, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 59.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4324/0.4338, allocations: 50.54 MB / 410 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.01253/0.4464, allocations: 6.074 MB / 416 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005037/0.4515, allocations: 1.552 MB / 417.6 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.4527, allocations: 19.94 kB / 417.6 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008448/0.4537, allocations: 170.3 kB / 417.8 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001577/0.4553, allocations: 289.2 kB / 418 MB, free: 9.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001592/0.4569, allocations: 415.4 kB / 418.5 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002778/0.4597, allocations: 1.395 MB / 419.8 MB, free: 7.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001119/0.4608, allocations: 429.2 kB / 420.3 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001473/0.4623, allocations: 0.4984 MB / 420.8 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00142/0.4638, allocations: 0.568 MB / 421.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005759/0.4644, allocations: 136 kB / 421.5 MB, free: 5.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000713/0.4651, allocations: 180 kB / 421.6 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004219/0.4656, allocations: 279 kB / 421.9 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001243/0.4668, allocations: 0.5872 MB / 422.5 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003094/0.4699, allocations: 1.535 MB / 424 MB, free: 3.395 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.145e-05/0.47, allocations: 4 kB / 424 MB, free: 3.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.47, allocations: 3.938 kB / 424 MB, free: 3.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.504e-05/0.4701, allocations: 0 / 424 MB, free: 3.387 MB / 334.1 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.00502/0.4751, allocations: 1.375 MB / 425.4 MB, free: 1.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.998e-05/0.4752, allocations: 11.97 kB / 425.4 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007269/0.4759, allocations: 131.6 kB / 425.6 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.4775, allocations: 0.5499 MB / 426.1 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.144e-05/0.4776, allocations: 66.38 kB / 426.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002907/0.4779, allocations: 92.36 kB / 426.3 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002916/0.4808, allocations: 0.8549 MB / 427.1 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.238e-05/0.4809, allocations: 0 / 427.1 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/0.4811, allocations: 36 kB / 427.2 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-05/0.4811, allocations: 20 kB / 427.2 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002809/0.4839, allocations: 0.8589 MB / 428 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009804/0.4938, allocations: 3.206 MB / 431.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002144/0.496, allocations: 0.6794 MB / 431.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.4973, allocations: 430.5 kB / 432.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.093e-05/0.4974, allocations: 8.562 kB / 432.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.78e-05/0.4975, allocations: 47.12 kB / 432.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 7.063e-06/0.4975, allocations: 4 kB / 432.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.007662/0.5052, allocations: 2.267 MB / 434.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.382e-05/0.5053, allocations: 60.06 kB / 434.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001551/0.5069, allocations: 0.6096 MB / 435.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.507, allocations: 37.7 kB / 435.4 MB, free: 7.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005415/0.5076, allocations: 435.3 kB / 435.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003885/0.508, allocations: 264.2 kB / 436.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000658/0.5087, allocations: 150.6 kB / 436.2 MB, free: 6.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0005447/0.5093, allocations: 390.7 kB / 436.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.5105, allocations: 329.9 kB / 436.9 MB, free: 6.176 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001575/0.5121, allocations: 460.6 kB / 437.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002605/0.5147, allocations: 0.8086 MB / 438.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-06/0.5147, allocations: 4 kB / 438.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.004106/0.5188, allocations: 1.114 MB / 439.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.582e-05/0.5189, allocations: 4 kB / 439.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-05/0.519, allocations: 8.062 kB / 439.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009991/0.52, allocations: 191.5 kB / 439.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.5215, allocations: 203.7 kB / 439.7 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006987/0.5285, allocations: 2.88 MB / 442.6 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/0.53, allocations: 31.98 kB / 442.6 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002383/0.5303, allocations: 39.98 kB / 442.6 MB, free: 208 kB / 350.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008787/0.5312, allocations: 233.6 kB / 442.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003854/0.5316, allocations: 83 kB / 442.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000395/0.532, allocations: 103.2 kB / 443 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.532, allocations: 8 kB / 443 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-05/0.5321, allocations: 4 kB / 443.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.521e-05/0.5321, allocations: 3.984 kB / 443.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002149/0.5343, allocations: 0.869 MB / 443.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/0.5343, allocations: 7.938 kB / 443.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/0.5357, allocations: 151.8 kB / 444.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009336/0.5366, allocations: 184.6 kB / 444.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.5367, allocations: 23.98 kB / 444.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006532/0.5433, allocations: 2.884 MB / 447.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.5434, allocations: 0 / 447.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004968/0.5483, allocations: 1.435 MB / 448.6 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004052/0.5488, allocations: 144.2 kB / 448.7 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002731/0.5491, allocations: 16 kB / 448.8 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.5502, allocations: 51.95 kB / 448.8 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002324/0.5505, allocations: 52.58 kB / 448.9 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.5506, allocations: 23.98 kB / 448.9 MB, free: 9.695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001005/0.5517, allocations: 427.1 kB / 449.3 MB, free: 9.281 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5517, allocations: 0 / 449.3 MB, free: 9.281 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001633/0.5533, allocations: 240 kB / 449.5 MB, free: 9.047 MB / 366.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003967/0.5537, allocations: 151.1 kB / 449.7 MB, free: 8.891 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00377/0.5575, allocations: 1.029 MB / 450.7 MB, free: 7.852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/0.5576, allocations: 4.812 kB / 450.7 MB, free: 7.848 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002128/0.5597, allocations: 0.6501 MB / 451.4 MB, free: 7.184 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.561, allocations: 149.3 kB / 451.5 MB, free: 7.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004539/0.5656, allocations: 2.039 MB / 453.6 MB, free: 4.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009354/0.5666, allocations: 0.9814 MB / 454.5 MB, free: 3.961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004181/0.567, allocations: 67.41 kB / 454.6 MB, free: 3.895 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.567, allocations: 0 / 454.6 MB, free: 3.895 MB / 366.1 MB Notification: Performance of Templates: time 0.03327/0.6003, allocations: 15.1 MB / 469.7 MB, free: 4.828 MB / 382.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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[5057]=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.v,C2.v,C3.v,C4.v,C5.v,Transistor1.Tr.C.v,Transistor1.ct.v,Transistor2.Tr.C.v,Transistor2.ct.v,time