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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 105.2 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 39.94 kB / 350.1 MB, free: 36 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.3596, allocations: 49.43 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004145/0.3638, allocations: 3.398 MB / 402.9 MB, free: 29.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.3655, allocations: 0.7967 MB / 403.7 MB, free: 29.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002742/0.3659, allocations: 4 kB / 403.7 MB, free: 29.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002465/0.3661, allocations: 55.59 kB / 403.7 MB, free: 29.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002569/0.3664, allocations: 103.2 kB / 403.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003795/0.3668, allocations: 123.8 kB / 404 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004643/0.3673, allocations: 478 kB / 404.4 MB, free: 28.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002921/0.3676, allocations: 157.4 kB / 404.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002026/0.3678, allocations: 163.4 kB / 404.7 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/0.368, allocations: 183.1 kB / 404.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.162e-05/0.3681, allocations: 28 kB / 404.9 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.778e-05/0.3681, allocations: 28 kB / 405 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.263e-05/0.3682, allocations: 79.67 kB / 405 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001867/0.3684, allocations: 195 kB / 405.2 MB, free: 27.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004103/0.3688, allocations: 0.5387 MB / 405.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.3688, allocations: 7.938 kB / 405.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3688, allocations: 0 / 405.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.3689, allocations: 0 / 405.8 MB, free: 27.02 MB / 298.7 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.001269/0.3701, allocations: 0.698 MB / 406.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.3702, allocations: 8.031 kB / 406.5 MB, free: 26.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.3703, allocations: 40.47 kB / 406.5 MB, free: 26.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004503/0.3708, allocations: 320.5 kB / 406.8 MB, free: 25.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.3708, allocations: 25.38 kB / 406.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.544e-05/0.3709, allocations: 36.12 kB / 406.9 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006261/0.3715, allocations: 398.1 kB / 407.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.3715, allocations: 3.984 kB / 407.3 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.477e-05/0.3716, allocations: 16 kB / 407.3 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.3716, allocations: 8 kB / 407.3 MB, free: 25.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005508/0.3721, allocations: 299.8 kB / 407.6 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002057/0.3742, allocations: 1.443 MB / 409.1 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005661/0.3748, allocations: 238.7 kB / 409.3 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.375, allocations: 92.83 kB / 409.4 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.375, allocations: 0 / 409.4 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.3751, allocations: 42.55 kB / 409.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.3751, allocations: 0 / 409.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.002255/0.3773, allocations: 0.7595 MB / 410.2 MB, free: 22.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.3774, allocations: 51.41 kB / 410.2 MB, free: 22.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003577/0.3778, allocations: 315.2 kB / 410.5 MB, free: 21.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.3e-05/0.3778, allocations: 29.7 kB / 410.6 MB, free: 21.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.378, allocations: 227.6 kB / 410.8 MB, free: 21.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.605e-05/0.378, allocations: 59.2 kB / 410.8 MB, free: 21.65 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.059e-05/0.3781, allocations: 49.7 kB / 410.9 MB, free: 21.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3783, allocations: 334.8 kB / 411.2 MB, free: 21.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.3785, allocations: 79.95 kB / 411.3 MB, free: 21.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002349/0.3787, allocations: 161.4 kB / 411.5 MB, free: 20.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004477/0.3792, allocations: 247.8 kB / 411.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3792, allocations: 0 / 411.7 MB, free: 20.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009176/0.3801, allocations: 426.7 kB / 412.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.3802, allocations: 11.98 kB / 412.1 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3802, allocations: 0 / 412.1 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005488/0.3807, allocations: 125.7 kB / 412.3 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/0.3809, allocations: 39.92 kB / 412.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003413/0.3843, allocations: 3.259 MB / 415.6 MB, free: 16.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003095/0.3847, allocations: 43.73 kB / 415.6 MB, free: 16.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.3847, allocations: 8 kB / 415.6 MB, free: 16.54 MB / 298.7 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.0002275/0.385, allocations: 161.8 kB / 415.8 MB, free: 16.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.483e-05/0.385, allocations: 31.7 kB / 415.8 MB, free: 16.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.024e-05/0.3851, allocations: 26.3 kB / 415.8 MB, free: 16.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.3851, allocations: 4 kB / 415.8 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.3851, allocations: 4.125 kB / 415.8 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3851, allocations: 0 / 415.8 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003939/0.3855, allocations: 377.2 kB / 416.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3855, allocations: 0 / 416.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.324e-05/0.3856, allocations: 15.94 kB / 416.2 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000338/0.386, allocations: 113.6 kB / 416.3 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.386, allocations: 4 kB / 416.3 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003069/0.3891, allocations: 3.17 MB / 419.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3891, allocations: 4.062 kB / 419.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.3905, allocations: 1.091 MB / 420.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.3906, allocations: 108.8 kB / 420.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.3907, allocations: 4 kB / 420.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002611/0.3909, allocations: 23.97 kB / 420.7 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.3911, allocations: 19.92 kB / 420.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.3911, allocations: 4 kB / 420.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002995/0.3914, allocations: 225.9 kB / 421 MB, free: 10.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3914, allocations: 0 / 421 MB, free: 10.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008461/0.3923, allocations: 99.69 kB / 421.1 MB, free: 10.66 MB / 298.7 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.0002337/0.3925, allocations: 103.2 kB / 421.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.3939, allocations: 0.505 MB / 421.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.394, allocations: 0 / 421.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005131/0.3945, allocations: 345.1 kB / 422 MB, free: 9.652 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007009/0.3952, allocations: 45.12 kB / 422 MB, free: 9.609 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001801/0.397, allocations: 0.8502 MB / 422.9 MB, free: 8.727 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.3974, allocations: 0.791 MB / 423.7 MB, free: 7.906 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001674/0.3976, allocations: 42.83 kB / 423.7 MB, free: 7.863 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.3977, allocations: 19.44 kB / 423.8 MB, free: 7.844 MB / 298.7 MB Notification: Performance of SimCode: time 2.124e-06/0.3977, allocations: 0 / 423.8 MB, free: 7.844 MB / 298.7 MB Notification: Performance of Templates: time 0.01012/0.4078, allocations: 3.865 MB / 427.6 MB, free: 4.012 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches