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.001091/0.001091, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001098/0.001098, allocations: 191 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 51.92 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2629, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004958/0.2679, allocations: 3.366 MB / 404.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.2696, allocations: 0.8026 MB / 405.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000351/0.27, allocations: 7.938 kB / 405.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002703/0.2703, allocations: 67.36 kB / 405.7 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000361/0.2707, allocations: 119 kB / 405.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.2711, allocations: 131.8 kB / 405.9 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000487/0.2716, allocations: 0.5018 MB / 406.4 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003462/0.2719, allocations: 173 kB / 406.6 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002491/0.2722, allocations: 183.3 kB / 406.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000227/0.2724, allocations: 207.1 kB / 407 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.473e-05/0.2725, allocations: 48 kB / 407 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.031e-05/0.2726, allocations: 48 kB / 407.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.786e-05/0.2727, allocations: 95.73 kB / 407.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.2729, allocations: 218.9 kB / 407.4 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005131/0.2734, allocations: 0.5618 MB / 407.9 MB, free: 2.316 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.2734, allocations: 0 / 407.9 MB, free: 2.316 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2734, allocations: 4 kB / 407.9 MB, free: 2.312 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.2735, allocations: 0 / 407.9 MB, free: 2.312 MB / 318.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.001175/0.2746, allocations: 0.698 MB / 408.6 MB, free: 1.566 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.2747, allocations: 11.97 kB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.226e-05/0.2748, allocations: 40.47 kB / 408.7 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004181/0.2752, allocations: 328.5 kB / 409 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.2752, allocations: 25.38 kB / 409 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/0.2753, allocations: 40.12 kB / 409.1 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006901/0.276, allocations: 390.2 kB / 409.5 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.276, allocations: 0 / 409.5 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.2761, allocations: 16 kB / 409.5 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.2761, allocations: 12 kB / 409.5 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006017/0.2767, allocations: 303.8 kB / 409.8 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002245/0.2789, allocations: 1.432 MB / 411.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006471/0.2796, allocations: 230.7 kB / 411.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002239/0.2798, allocations: 96.81 kB / 411.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.2799, allocations: 3.984 kB / 411.5 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.2799, allocations: 38.56 kB / 411.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 3.226e-06/0.2799, allocations: 4 kB / 411.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002213/0.2821, allocations: 0.7506 MB / 412.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.2822, allocations: 55.41 kB / 412.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003544/0.2825, allocations: 323.1 kB / 412.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.2826, allocations: 25.7 kB / 412.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.2827, allocations: 235.6 kB / 413 MB, free: 13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.192e-05/0.2828, allocations: 55.19 kB / 413 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-05/0.2829, allocations: 49.7 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.283, allocations: 338.8 kB / 413.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.2832, allocations: 83.95 kB / 413.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.2835, allocations: 157.4 kB / 413.6 MB, free: 12.29 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004457/0.284, allocations: 237.3 kB / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.284, allocations: 8 kB / 413.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00101/0.285, allocations: 429.4 kB / 414.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.285, allocations: 11.94 kB / 414.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.285, allocations: 8.062 kB / 414.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004771/0.2855, allocations: 109.6 kB / 414.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/0.2857, allocations: 47.91 kB / 414.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004232/0.2899, allocations: 3.564 MB / 418 MB, free: 7.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002616/0.2902, allocations: 39.67 kB / 418.1 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.2903, allocations: 8 kB / 418.1 MB, free: 7.52 MB / 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.0001909/0.2905, allocations: 149.8 kB / 418.2 MB, free: 7.363 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.629e-05/0.2905, allocations: 31.66 kB / 418.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.213e-05/0.2906, allocations: 34.36 kB / 418.3 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.2906, allocations: 4 kB / 418.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2906, allocations: 0 / 418.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2906, allocations: 3.984 kB / 418.3 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004317/0.2911, allocations: 361.3 kB / 418.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2911, allocations: 128 / 418.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.707e-05/0.2912, allocations: 23.92 kB / 418.7 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003699/0.2916, allocations: 117.6 kB / 418.8 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.2916, allocations: 0 / 418.8 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003588/0.2952, allocations: 3.475 MB / 422.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2952, allocations: 0 / 422.3 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009164/0.2961, allocations: 428.7 kB / 422.7 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.2962, allocations: 108.7 kB / 422.8 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.153e-05/0.2963, allocations: 4 kB / 422.8 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002459/0.2965, allocations: 27.97 kB / 422.8 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.583e-05/0.2966, allocations: 15.98 kB / 422.8 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.2966, allocations: 4 kB / 422.8 MB, free: 2.363 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002476/0.2969, allocations: 221.9 kB / 423 MB, free: 2.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2969, allocations: 3.938 kB / 423.1 MB, free: 2.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000554/0.2975, allocations: 95.78 kB / 423.1 MB, free: 2.055 MB / 334.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.0001557/0.2976, allocations: 107.7 kB / 423.2 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.2989, allocations: 0.5089 MB / 423.8 MB, free: 1.406 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.2989, allocations: 0 / 423.8 MB, free: 1.406 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004729/0.2994, allocations: 341.7 kB / 424.1 MB, free: 1.047 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000441/0.2998, allocations: 56.53 kB / 424.1 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.3011, allocations: 0.5993 MB / 424.7 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003531/0.3014, allocations: 0.7795 MB / 425.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.174e-05/0.3015, allocations: 19.44 kB / 425.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3015, allocations: 0 / 425.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of Templates: time 0.009007/0.3105, allocations: 6.776 MB / 432.3 MB, free: 8.77 MB / 350.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