Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00142/0.00142, allocations: 114.5 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.001693/0.001693, allocations: 210 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 59.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2945, allocations: 50.53 MB / 410 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004965/0.2995, allocations: 3.387 MB / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001713/0.3013, allocations: 0.8648 MB / 414.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.3016, allocations: 11.94 kB / 414.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002593/0.3018, allocations: 63.36 kB / 414.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003405/0.3022, allocations: 119 kB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004283/0.3026, allocations: 147.8 kB / 414.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005946/0.3032, allocations: 0.5019 MB / 415 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003192/0.3036, allocations: 169 kB / 415.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003607/0.304, allocations: 187.4 kB / 415.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003462/0.3043, allocations: 203.1 kB / 415.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.98e-05/0.3044, allocations: 48 kB / 415.6 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.3045, allocations: 59.98 kB / 415.7 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.926e-05/0.3046, allocations: 95.62 kB / 415.8 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002913/0.3049, allocations: 226.9 kB / 416 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006379/0.3056, allocations: 0.5618 MB / 416.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3056, allocations: 0 / 416.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3056, allocations: 0 / 416.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.137e-05/0.3056, allocations: 4 kB / 416.6 MB, free: 10.93 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001414/0.307, allocations: 0.7018 MB / 417.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.3071, allocations: 8.031 kB / 417.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002289/0.3073, allocations: 52.45 kB / 417.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005484/0.3079, allocations: 320.6 kB / 417.6 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.3079, allocations: 29.38 kB / 417.7 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.207e-05/0.308, allocations: 36.12 kB / 417.7 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008621/0.3089, allocations: 398.1 kB / 418.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.3089, allocations: 0 / 418.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.754e-05/0.3089, allocations: 12 kB / 418.1 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.309, allocations: 11.98 kB / 418.1 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000748/0.3097, allocations: 303.9 kB / 418.4 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002623/0.3124, allocations: 1.439 MB / 419.9 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007671/0.3131, allocations: 230.8 kB / 420.1 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002208/0.3134, allocations: 100.8 kB / 420.2 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.3134, allocations: 4 kB / 420.2 MB, free: 7.113 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.3135, allocations: 30.56 kB / 420.2 MB, free: 7.074 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 2.034e-06/0.3135, allocations: 4 kB / 420.2 MB, free: 7.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002503/0.316, allocations: 0.7659 MB / 421 MB, free: 6.258 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.316, allocations: 59.34 kB / 421 MB, free: 6.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004023/0.3164, allocations: 312.5 kB / 421.4 MB, free: 5.879 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.967e-05/0.3165, allocations: 29.7 kB / 421.4 MB, free: 5.844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.3167, allocations: 227.6 kB / 421.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.65e-05/0.3168, allocations: 59.19 kB / 421.7 MB, free: 5.555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.428e-05/0.3169, allocations: 53.61 kB / 421.7 MB, free: 5.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.317, allocations: 338.8 kB / 422 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002378/0.3172, allocations: 83.95 kB / 422.1 MB, free: 5.074 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002574/0.3175, allocations: 165.3 kB / 422.3 MB, free: 4.879 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000562/0.3181, allocations: 247.5 kB / 422.5 MB, free: 4.605 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3181, allocations: 4 kB / 422.5 MB, free: 4.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001193/0.3193, allocations: 422.8 kB / 422.9 MB, free: 4.176 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.3193, allocations: 8 kB / 423 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.3194, allocations: 4.062 kB / 423 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005796/0.3199, allocations: 113.6 kB / 423.1 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002267/0.3202, allocations: 35.92 kB / 423.1 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004037/0.3242, allocations: 3.564 MB / 426.7 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000221/0.3245, allocations: 35.81 kB / 426.7 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.3245, allocations: 15.98 kB / 426.7 MB, free: 120 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001738/0.3247, allocations: 153.7 kB / 426.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.959e-05/0.3248, allocations: 31.56 kB / 426.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.245e-05/0.3248, allocations: 34.38 kB / 426.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3248, allocations: 4 kB / 426.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3248, allocations: 0 / 426.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.3248, allocations: 4.078 kB / 426.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003919/0.3252, allocations: 369.3 kB / 427.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3253, allocations: 3.938 kB / 427.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.752e-05/0.3253, allocations: 12 kB / 427.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003498/0.3257, allocations: 113.6 kB / 427.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.3257, allocations: 7.984 kB / 427.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003476/0.3292, allocations: 3.472 MB / 430.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3292, allocations: 0 / 430.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008858/0.3301, allocations: 440.5 kB / 431.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.121e-05/0.3302, allocations: 104.8 kB / 431.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/0.3303, allocations: 0 / 431.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.3305, allocations: 27.98 kB / 431.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.101e-05/0.3305, allocations: 15.98 kB / 431.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.3306, allocations: 7.984 kB / 431.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002187/0.3308, allocations: 219.1 kB / 431.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3308, allocations: 0 / 431.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004823/0.3313, allocations: 103.7 kB / 431.8 MB, free: 10.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001269/0.3314, allocations: 103.2 kB / 431.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.3325, allocations: 0.5151 MB / 432.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3325, allocations: 0 / 432.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004536/0.333, allocations: 353.6 kB / 432.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.3334, allocations: 45.48 kB / 432.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.3345, allocations: 0.5997 MB / 433.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.3348, allocations: 0.7794 MB / 434.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.794e-05/0.3349, allocations: 19.44 kB / 434.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3349, allocations: 4 kB / 434.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of Templates: time 0.008679/0.3436, allocations: 6.814 MB / 441 MB, free: 1.312 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches