Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001092, allocations: 197.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007782/0.0007782, allocations: 101 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002201/0.0002202, allocations: 12 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.1987, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.002408/0.2011, allocations: 2.895 MB / 410.4 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009829/0.2021, allocations: 0.8012 MB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.2023, allocations: 4 kB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.2024, allocations: 48.14 kB / 411.3 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.2026, allocations: 97.81 kB / 411.3 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002115/0.2028, allocations: 83.84 kB / 411.4 MB, free: 23.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002664/0.2031, allocations: 458.1 kB / 411.9 MB, free: 23.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.2033, allocations: 133 kB / 412 MB, free: 23.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.2034, allocations: 151.4 kB / 412.2 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.2036, allocations: 163.2 kB / 412.3 MB, free: 23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.584e-05/0.2036, allocations: 20 kB / 412.3 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.359e-05/0.2037, allocations: 24 kB / 412.4 MB, free: 22.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.708e-05/0.2038, allocations: 75.61 kB / 412.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.08e-05/0.2038, allocations: 101.5 kB / 412.5 MB, free: 22.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002553/0.2041, allocations: 451.6 kB / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2041, allocations: 0 / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2041, allocations: 0 / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.2041, allocations: 0 / 413 MB, free: 22.34 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.0008239/0.2049, allocations: 0.6433 MB / 413.6 MB, free: 21.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.205, allocations: 8.031 kB / 413.6 MB, free: 21.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.2052, allocations: 59.52 kB / 413.7 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/0.2054, allocations: 311.2 kB / 414 MB, free: 21.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.841e-05/0.2055, allocations: 24.95 kB / 414 MB, free: 21.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.552e-05/0.2055, allocations: 39.94 kB / 414 MB, free: 21.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000559/0.2061, allocations: 386.2 kB / 414.4 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.2061, allocations: 8 kB / 414.4 MB, free: 20.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.023e-05/0.2061, allocations: 8 kB / 414.4 MB, free: 20.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.2061, allocations: 12 kB / 414.5 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000529/0.2067, allocations: 303.9 kB / 414.8 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.2084, allocations: 1.478 MB / 416.2 MB, free: 18.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005398/0.209, allocations: 246.7 kB / 416.5 MB, free: 18.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001901/0.2092, allocations: 105.6 kB / 416.6 MB, free: 18.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.2092, allocations: 0 / 416.6 MB, free: 18.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.2092, allocations: 38.56 kB / 416.6 MB, free: 18.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 9.62e-07/0.2092, allocations: 0 / 416.6 MB, free: 18.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001997/0.2112, allocations: 0.8009 MB / 417.4 MB, free: 17.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.952e-05/0.2113, allocations: 55.34 kB / 417.5 MB, free: 17.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002451/0.2115, allocations: 311.2 kB / 417.8 MB, free: 17.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.2115, allocations: 33.7 kB / 417.8 MB, free: 17.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.136e-05/0.2116, allocations: 227.7 kB / 418 MB, free: 17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.2117, allocations: 55.2 kB / 418.1 MB, free: 16.94 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.928e-06/0.2117, allocations: 4 kB / 418.1 MB, free: 16.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.77e-05/0.2117, allocations: 338.8 kB / 418.4 MB, free: 16.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.2119, allocations: 83.91 kB / 418.5 MB, free: 16.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.2121, allocations: 173.3 kB / 418.7 MB, free: 16.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.2124, allocations: 102.2 kB / 418.8 MB, free: 16.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2124, allocations: 4 kB / 418.8 MB, free: 16.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008641/0.2132, allocations: 450.7 kB / 419.2 MB, free: 15.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2133, allocations: 4 kB / 419.2 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.2133, allocations: 4 kB / 419.2 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004077/0.2137, allocations: 117.7 kB / 419.3 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.2138, allocations: 39.92 kB / 419.4 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002953/0.2168, allocations: 3.314 MB / 422.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002067/0.217, allocations: 43.62 kB / 422.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.2171, allocations: 12.06 kB / 422.7 MB, free: 11.95 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.2172, allocations: 149.8 kB / 422.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.2172, allocations: 27.72 kB / 422.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.14e-05/0.2173, allocations: 30.3 kB / 422.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2173, allocations: 0 / 422.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2173, allocations: 0 / 422.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2173, allocations: 3.984 kB / 422.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002756/0.2176, allocations: 373.2 kB / 423.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2176, allocations: 4 kB / 423.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-05/0.2177, allocations: 19.92 kB / 423.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003045/0.218, allocations: 121.7 kB / 423.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.218, allocations: 0 / 423.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002318/0.2203, allocations: 3.213 MB / 426.7 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2204, allocations: 0 / 426.7 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007502/0.2211, allocations: 440.8 kB / 427.1 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.423e-05/0.2212, allocations: 108.8 kB / 427.2 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.2212, allocations: 4 kB / 427.2 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.2214, allocations: 27.97 kB / 427.2 MB, free: 7.082 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.876e-05/0.2215, allocations: 15.98 kB / 427.2 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.2215, allocations: 11.95 kB / 427.3 MB, free: 7.055 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001574/0.2216, allocations: 217.9 kB / 427.5 MB, free: 6.844 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2217, allocations: 0 / 427.5 MB, free: 6.844 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004135/0.2221, allocations: 103.7 kB / 427.6 MB, free: 6.742 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001074/0.2222, allocations: 103.2 kB / 427.7 MB, free: 6.633 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009054/0.2231, allocations: 0.5327 MB / 428.2 MB, free: 6.074 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2231, allocations: 4.125 kB / 428.2 MB, free: 6.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003247/0.2234, allocations: 345.2 kB / 428.5 MB, free: 5.707 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004112/0.2239, allocations: 55.83 kB / 428.6 MB, free: 5.656 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00091/0.2248, allocations: 0.7171 MB / 429.3 MB, free: 4.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000166/0.225, allocations: 0.7795 MB / 430.1 MB, free: 4.105 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.125e-05/0.225, allocations: 23.38 kB / 430.1 MB, free: 4.082 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.225, allocations: 0 / 430.1 MB, free: 4.082 MB / 298.7 MB Notification: Performance of Templates: time 0.006795/0.2318, allocations: 6.679 MB / 436.8 MB, free: 13.42 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches