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.001184/0.001185, allocations: 106.6 kB / 16.92 MB, free: 5.777 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.001114/0.001114, allocations: 187.3 kB / 17.85 MB, free: 5.168 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.45/1.45, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 51.39 kB / 300.6 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1398, allocations: 49.44 MB / 350.1 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.00815/0.1481, allocations: 3.353 MB / 353.4 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.1507, allocations: 0.8142 MB / 354.2 MB, free: 152 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006213/0.1513, allocations: 8 kB / 354.2 MB, free: 144 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004962/0.1519, allocations: 67.36 kB / 354.3 MB, free: 76 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007377/0.1527, allocations: 123 kB / 354.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006946/0.1534, allocations: 135.8 kB / 354.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001056/0.1545, allocations: 498 kB / 355 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004711/0.155, allocations: 176.9 kB / 355.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005228/0.1555, allocations: 187.3 kB / 355.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004977/0.156, allocations: 203.1 kB / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001788/0.1562, allocations: 48 kB / 355.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.1564, allocations: 48 kB / 355.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.1565, allocations: 95.69 kB / 355.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003505/0.1569, allocations: 215 kB / 356 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008313/0.1577, allocations: 0.5609 MB / 356.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.748e-06/0.1578, allocations: 4 kB / 356.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1578, allocations: 0 / 356.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.768e-05/0.1578, allocations: 0 / 356.6 MB, free: 13.81 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.001865/0.1597, allocations: 0.7057 MB / 357.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/0.1598, allocations: 12.03 kB / 357.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.1599, allocations: 48.45 kB / 357.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000565/0.1605, allocations: 312.7 kB / 357.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.924e-05/0.1606, allocations: 25.38 kB / 357.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.413e-05/0.1607, allocations: 40.06 kB / 357.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009802/0.1616, allocations: 390.2 kB / 358.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.1617, allocations: 0 / 358.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.349e-05/0.1617, allocations: 12 kB / 358.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.1617, allocations: 12 kB / 358.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007098/0.1625, allocations: 299.8 kB / 358.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.1652, allocations: 1.447 MB / 359.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007074/0.1659, allocations: 238.7 kB / 360.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002275/0.1661, allocations: 92.81 kB / 360.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.1662, allocations: 4 kB / 360.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.1662, allocations: 30.56 kB / 360.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.332e-06/0.1662, allocations: 0 / 360.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002315/0.1686, allocations: 0.7664 MB / 361 MB, free: 9.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.1686, allocations: 51.41 kB / 361 MB, free: 9.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004823/0.1691, allocations: 315.3 kB / 361.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.702e-05/0.1692, allocations: 29.7 kB / 361.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001908/0.1694, allocations: 223.6 kB / 361.6 MB, free: 8.496 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.122e-05/0.1694, allocations: 63.17 kB / 361.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.1696, allocations: 49.61 kB / 361.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.1697, allocations: 342.8 kB / 362 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000291/0.1701, allocations: 79.95 kB / 362.1 MB, free: 7.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.1704, allocations: 165.3 kB / 362.3 MB, free: 7.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006194/0.1711, allocations: 248.1 kB / 362.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.1711, allocations: 0 / 362.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001426/0.1725, allocations: 422.8 kB / 362.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.1726, allocations: 8 kB / 362.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1726, allocations: 0 / 362.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006711/0.1733, allocations: 121.6 kB / 363 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002226/0.1735, allocations: 35.97 kB / 363.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00551/0.179, allocations: 3.568 MB / 366.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003699/0.1794, allocations: 35.67 kB / 366.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.534e-05/0.1795, allocations: 19.94 kB / 366.7 MB, free: 2.992 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.0002711/0.1797, allocations: 153.8 kB / 366.8 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.1799, allocations: 31.56 kB / 366.9 MB, free: 2.801 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.359e-05/0.18, allocations: 30.3 kB / 366.9 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.18, allocations: 11.97 kB / 366.9 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.18, allocations: 0 / 366.9 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.18, allocations: 7.969 kB / 366.9 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005851/0.1806, allocations: 357.4 kB / 367.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1806, allocations: 0 / 367.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.1807, allocations: 15.98 kB / 367.3 MB, free: 2.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004942/0.1813, allocations: 113.6 kB / 367.4 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/0.1813, allocations: 12 kB / 367.4 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.263/0.4443, allocations: 3.467 MB / 370.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4443, allocations: 2.219 kB / 370.9 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.4454, allocations: 429.1 kB / 371.3 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.4455, allocations: 108.1 kB / 371.4 MB, free: 23.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.4456, allocations: 4.125 kB / 371.4 MB, free: 23.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.4459, allocations: 25.39 kB / 371.4 MB, free: 23.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.365e-05/0.446, allocations: 15.97 kB / 371.4 MB, free: 23.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.446, allocations: 12.17 kB / 371.5 MB, free: 23.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003129/0.4463, allocations: 220.4 kB / 371.7 MB, free: 23.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4463, allocations: 0 / 371.7 MB, free: 23.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006311/0.447, allocations: 100.9 kB / 371.8 MB, free: 23.7 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.0001938/0.4472, allocations: 108.2 kB / 371.9 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001345/0.4485, allocations: 0.5174 MB / 372.4 MB, free: 23.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4485, allocations: 1.375 kB / 372.4 MB, free: 23.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004426/0.449, allocations: 340.8 kB / 372.7 MB, free: 23.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/0.4495, allocations: 50.62 kB / 372.8 MB, free: 23.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.4509, allocations: 0.5785 MB / 373.4 MB, free: 22.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.4513, allocations: 0.7778 MB / 374.1 MB, free: 22.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000127/0.4515, allocations: 26.31 kB / 374.2 MB, free: 22.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.416e-05/0.4515, allocations: 23.66 kB / 374.2 MB, free: 22.21 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4515, allocations: 0 / 374.2 MB, free: 22.21 MB / 302.1 MB Notification: Performance of Templates: time 0.01095/0.4625, allocations: 3.932 MB / 378.1 MB, free: 22.04 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/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