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.0014/0.0014, allocations: 105.1 kB / 18.45 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001508/0.001508, allocations: 210.8 kB / 19.41 MB, free: 3.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001884, allocations: 63.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.253, allocations: 50.54 MB / 410 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006471/0.2595, allocations: 6.074 MB / 416 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002917/0.2625, allocations: 1.552 MB / 417.6 MB, free: 9.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006621/0.2632, allocations: 12 kB / 417.6 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005583/0.2638, allocations: 178.2 kB / 417.8 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008678/0.2647, allocations: 281.3 kB / 418 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009891/0.2657, allocations: 423.3 kB / 418.5 MB, free: 9.062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001469/0.2671, allocations: 1.395 MB / 419.8 MB, free: 7.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005559/0.2677, allocations: 437.2 kB / 420.3 MB, free: 7.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006195/0.2683, allocations: 0.4907 MB / 420.8 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006058/0.269, allocations: 0.5757 MB / 421.3 MB, free: 6.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001656/0.2691, allocations: 132 kB / 421.5 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003037/0.2694, allocations: 180 kB / 421.6 MB, free: 5.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001896/0.2696, allocations: 271.2 kB / 421.9 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004604/0.2701, allocations: 0.5872 MB / 422.5 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.2714, allocations: 1.539 MB / 424 MB, free: 3.441 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2714, allocations: 3.938 kB / 424 MB, free: 3.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2714, allocations: 0 / 424 MB, free: 3.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.2715, allocations: 0 / 424 MB, free: 3.438 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.002544/0.274, allocations: 1.383 MB / 425.4 MB, free: 2.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2741, allocations: 8.031 kB / 425.4 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000349/0.2744, allocations: 131.6 kB / 425.6 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007399/0.2752, allocations: 0.5576 MB / 426.1 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.053e-05/0.2752, allocations: 66.38 kB / 426.2 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.2754, allocations: 88.38 kB / 426.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.2769, allocations: 0.8549 MB / 427.1 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/0.277, allocations: 0 / 427.1 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.81e-05/0.2771, allocations: 36 kB / 427.2 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.2771, allocations: 24 kB / 427.2 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.2787, allocations: 0.8511 MB / 428 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005169/0.2838, allocations: 3.206 MB / 431.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.285, allocations: 0.6793 MB / 431.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006895/0.2857, allocations: 434.7 kB / 432.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.521e-05/0.2857, allocations: 12.56 kB / 432.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.2858, allocations: 39.12 kB / 432.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.395e-06/0.2858, allocations: 0 / 432.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.004425/0.2902, allocations: 2.271 MB / 434.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.2903, allocations: 60.06 kB / 434.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006672/0.291, allocations: 0.6096 MB / 435.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.16e-05/0.291, allocations: 37.7 kB / 435.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002738/0.2913, allocations: 439.3 kB / 435.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.2915, allocations: 264.2 kB / 436.1 MB, free: 7.086 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002345/0.2917, allocations: 150.5 kB / 436.2 MB, free: 6.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.2919, allocations: 382.8 kB / 436.6 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006235/0.2925, allocations: 329.9 kB / 436.9 MB, free: 6.227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007357/0.2933, allocations: 476.5 kB / 437.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.2946, allocations: 0.793 MB / 438.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.2946, allocations: 4 kB / 438.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002137/0.2968, allocations: 1.118 MB / 439.3 MB, free: 3.738 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.2968, allocations: 8 kB / 439.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2968, allocations: 3.938 kB / 439.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005619/0.2974, allocations: 195.7 kB / 439.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008573/0.2983, allocations: 199.7 kB / 439.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003534/0.3018, allocations: 2.87 MB / 442.5 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006835/0.3025, allocations: 40.03 kB / 442.6 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.025e-05/0.3026, allocations: 31.98 kB / 442.6 MB, free: 264 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.0003772/0.303, allocations: 241.5 kB / 442.9 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.3031, allocations: 87.05 kB / 442.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00018/0.3033, allocations: 95.2 kB / 443 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.3033, allocations: 8.125 kB / 443 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-05/0.3033, allocations: 11.94 kB / 443.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.3034, allocations: 3.984 kB / 443.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009644/0.3043, allocations: 0.8768 MB / 443.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.3043, allocations: 3.938 kB / 443.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007354/0.3051, allocations: 147.8 kB / 444.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004914/0.3056, allocations: 187 kB / 444.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.482e-05/0.3056, allocations: 23.98 kB / 444.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003449/0.3091, allocations: 2.883 MB / 447.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3091, allocations: 0 / 447.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002564/0.3117, allocations: 1.431 MB / 448.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.3119, allocations: 148.2 kB / 448.7 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.312, allocations: 19.98 kB / 448.8 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006208/0.3126, allocations: 43.97 kB / 448.8 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.3127, allocations: 52.58 kB / 448.9 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-05/0.3128, allocations: 31.98 kB / 448.9 MB, free: 9.738 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000474/0.3133, allocations: 431.1 kB / 449.3 MB, free: 9.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.553e-06/0.3133, allocations: 0 / 449.3 MB, free: 9.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000777/0.3141, allocations: 239.9 kB / 449.5 MB, free: 9.086 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.0002186/0.3143, allocations: 139.2 kB / 449.7 MB, free: 8.941 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002175/0.3165, allocations: 1.037 MB / 450.7 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3165, allocations: 0 / 450.7 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.3178, allocations: 0.6509 MB / 451.4 MB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007137/0.3185, allocations: 147.1 kB / 451.5 MB, free: 7.086 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00302/0.3216, allocations: 2.025 MB / 453.5 MB, free: 5.031 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004848/0.3221, allocations: 0.9814 MB / 454.5 MB, free: 4.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/0.3223, allocations: 67.41 kB / 454.6 MB, free: 3.953 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3224, allocations: 0 / 454.6 MB, free: 3.953 MB / 366.1 MB Notification: Performance of Templates: time 0.01816/0.3405, allocations: 15 MB / 469.6 MB, free: 4.996 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