Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001918/0.001918, allocations: 110.1 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002215/0.002216, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.327/2.327, allocations: 222.9 MB / 241.8 MB, free: 13.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001997, allocations: 52.83 kB / 300.6 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1734, allocations: 49.45 MB / 350.1 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.00906/0.1825, allocations: 3.402 MB / 353.5 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.1852, allocations: 0.791 MB / 354.3 MB, free: 412 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005127/0.1858, allocations: 8 kB / 354.3 MB, free: 404 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004428/0.1864, allocations: 47.61 kB / 354.3 MB, free: 356 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006851/0.1871, allocations: 107.2 kB / 354.4 MB, free: 248 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006373/0.1877, allocations: 127.8 kB / 354.6 MB, free: 120 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001077/0.1888, allocations: 466.1 kB / 355 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005184/0.1894, allocations: 149.3 kB / 355.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005129/0.1899, allocations: 171.3 kB / 355.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004598/0.1904, allocations: 183.2 kB / 355.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.1906, allocations: 28 kB / 355.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.1907, allocations: 32 kB / 355.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.1909, allocations: 75.62 kB / 355.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003853/0.1913, allocations: 195 kB / 355.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007315/0.192, allocations: 459.1 kB / 356.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.57e-05/0.1921, allocations: 4 kB / 356.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1921, allocations: 3.938 kB / 356.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.994e-05/0.1921, allocations: 0 / 356.3 MB, free: 14.38 MB / 302.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.00239/0.1945, allocations: 0.6941 MB / 357 MB, free: 13.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.577e-05/0.1946, allocations: 12.03 kB / 357 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.1948, allocations: 40.47 kB / 357 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007419/0.1956, allocations: 312.7 kB / 357.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.917e-05/0.1956, allocations: 25.38 kB / 357.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.62e-05/0.1957, allocations: 40.12 kB / 357.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.1972, allocations: 394.1 kB / 357.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.551e-05/0.1973, allocations: 0 / 357.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.026e-05/0.1974, allocations: 12 kB / 357.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.446e-05/0.1974, allocations: 12 kB / 357.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.1988, allocations: 295.9 kB / 358.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004644/0.2034, allocations: 1.451 MB / 359.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.2048, allocations: 238.7 kB / 359.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004363/0.2053, allocations: 96.77 kB / 359.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.2053, allocations: 7.984 kB / 359.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.383e-05/0.2054, allocations: 34.55 kB / 359.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 4.288e-06/0.2054, allocations: 0 / 359.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.004454/0.2099, allocations: 0.7587 MB / 360.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.906e-05/0.21, allocations: 55.41 kB / 360.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007449/0.2108, allocations: 307.3 kB / 361 MB, free: 9.348 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.777e-05/0.2109, allocations: 33.7 kB / 361.1 MB, free: 9.309 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003746/0.2112, allocations: 227.6 kB / 361.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.411e-05/0.2114, allocations: 59.19 kB / 361.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.2115, allocations: 49.61 kB / 361.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.2118, allocations: 338.8 kB / 361.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004342/0.2122, allocations: 83.95 kB / 361.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005453/0.2128, allocations: 165.3 kB / 362 MB, free: 8.348 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009207/0.2137, allocations: 245.3 kB / 362.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.26e-05/0.2138, allocations: 0 / 362.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.002122/0.2159, allocations: 429.8 kB / 362.6 MB, free: 7.645 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.952e-05/0.216, allocations: 11.98 kB / 362.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.216, allocations: 0 / 362.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009547/0.217, allocations: 117.7 kB / 362.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000328/0.2173, allocations: 35.92 kB / 362.8 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007811/0.2252, allocations: 3.267 MB / 366 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005348/0.2257, allocations: 35.67 kB / 366.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.539e-05/0.2258, allocations: 12 kB / 366.1 MB, free: 3.898 MB / 302.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.0003807/0.2262, allocations: 165.7 kB / 366.3 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.2264, allocations: 27.62 kB / 366.3 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.2265, allocations: 30.3 kB / 366.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.2266, allocations: 4 kB / 366.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.2266, allocations: 0 / 366.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.2266, allocations: 0 / 366.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008024/0.2274, allocations: 369.3 kB / 366.7 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.2274, allocations: 0 / 366.7 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.2276, allocations: 12 kB / 366.7 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007807/0.2284, allocations: 117.6 kB / 366.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.2284, allocations: 128 / 366.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3252/0.5537, allocations: 3.167 MB / 370 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.5537, allocations: 1.062 kB / 370 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.5556, allocations: 433.1 kB / 370.4 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.5558, allocations: 105.2 kB / 370.5 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.068e-05/0.5559, allocations: 10.2 kB / 370.5 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004761/0.5564, allocations: 27.94 kB / 370.5 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.88e-05/0.5565, allocations: 11.73 kB / 370.5 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.5565, allocations: 10.66 kB / 370.6 MB, free: 24.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005063/0.5571, allocations: 218.5 kB / 370.8 MB, free: 24.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.5571, allocations: 0 / 370.8 MB, free: 24.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001013/0.5581, allocations: 104.5 kB / 370.9 MB, free: 24.1 MB / 302.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.0001968/0.5583, allocations: 105 kB / 371 MB, free: 24.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00209/0.5604, allocations: 0.5121 MB / 371.5 MB, free: 23.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/0.5605, allocations: 0.9375 kB / 371.5 MB, free: 23.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007919/0.5613, allocations: 342.8 kB / 371.8 MB, free: 23.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009083/0.5622, allocations: 47.34 kB / 371.9 MB, free: 23.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.5644, allocations: 0.7241 MB / 372.6 MB, free: 23.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.5649, allocations: 0.7822 MB / 373.4 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.565, allocations: 25.22 kB / 373.4 MB, free: 22.44 MB / 302.1 MB Notification: Performance of SimCode: time 9.52e-07/0.565, allocations: 0 / 373.4 MB, free: 22.44 MB / 302.1 MB Notification: Performance of Templates: time 0.0192/0.5842, allocations: 6.71 MB / 380.1 MB, free: 21.3 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches