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.002114/0.002114, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.001987/0.001988, allocations: 188 kB / 18 MB, free: 5.219 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.675/1.675, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009773/0.0009773, allocations: 43.94 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5101/0.5111, allocations: 49.44 MB / 400.8 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.00549/0.5167, allocations: 3.371 MB / 404.1 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.518, allocations: 0.7987 MB / 404.9 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.5182, allocations: 8 kB / 404.9 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001929/0.5184, allocations: 71.3 kB / 405 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002261/0.5187, allocations: 123 kB / 405.1 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.519, allocations: 135.8 kB / 405.3 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00042/0.5194, allocations: 0.4902 MB / 405.7 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002795/0.5197, allocations: 173 kB / 405.9 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002216/0.5199, allocations: 195.2 kB / 406.1 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002194/0.5201, allocations: 199.2 kB / 406.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.942e-05/0.5202, allocations: 48 kB / 406.3 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.135e-05/0.5203, allocations: 48 kB / 406.4 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.035e-05/0.5204, allocations: 95.69 kB / 406.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001846/0.5205, allocations: 222.9 kB / 406.7 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004637/0.521, allocations: 0.5579 MB / 407.3 MB, free: 2.336 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.521, allocations: 0 / 407.3 MB, free: 2.336 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.521, allocations: 4 kB / 407.3 MB, free: 2.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.5211, allocations: 0 / 407.3 MB, free: 2.332 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.001064/0.5221, allocations: 0.7019 MB / 408 MB, free: 1.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.5222, allocations: 8.031 kB / 408 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.16e-05/0.5223, allocations: 44.47 kB / 408 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003839/0.5226, allocations: 320.6 kB / 408.3 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.738e-05/0.5227, allocations: 29.38 kB / 408.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.905e-05/0.5227, allocations: 36.12 kB / 408.4 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006287/0.5234, allocations: 402.1 kB / 408.8 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.5234, allocations: 0 / 408.8 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.441e-05/0.5234, allocations: 16 kB / 408.8 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.5234, allocations: 8 kB / 408.8 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005759/0.524, allocations: 299.9 kB / 409.1 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.5261, allocations: 1.431 MB / 410.5 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000599/0.5267, allocations: 234.8 kB / 410.8 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002036/0.5269, allocations: 92.81 kB / 410.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.527, allocations: 3.938 kB / 410.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.527, allocations: 42.5 kB / 410.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.263e-06/0.527, allocations: 0 / 410.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.00201/0.529, allocations: 0.751 MB / 411.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.5291, allocations: 55.41 kB / 411.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003266/0.5294, allocations: 319.2 kB / 412 MB, free: 13.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.5295, allocations: 25.7 kB / 412 MB, free: 13.26 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.5296, allocations: 231.6 kB / 412.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.425e-05/0.5297, allocations: 63.17 kB / 412.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.882e-05/0.5297, allocations: 45.7 kB / 412.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.5299, allocations: 338.8 kB / 412.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.5301, allocations: 87.95 kB / 412.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002428/0.5303, allocations: 157.3 kB / 412.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004195/0.5307, allocations: 241.3 kB / 413.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.5308, allocations: 4 kB / 413.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009019/0.5317, allocations: 433.2 kB / 413.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.5317, allocations: 4 kB / 413.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.5317, allocations: 8.062 kB / 413.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004476/0.5322, allocations: 109.6 kB / 413.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.5323, allocations: 47.91 kB / 413.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003768/0.5361, allocations: 3.564 MB / 417.3 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.5363, allocations: 39.67 kB / 417.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.5364, allocations: 8 kB / 417.4 MB, free: 7.539 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.0001611/0.5365, allocations: 153.7 kB / 417.5 MB, free: 7.379 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.472e-05/0.5366, allocations: 35.64 kB / 417.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.322e-05/0.5367, allocations: 34.38 kB / 417.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.5367, allocations: 3.984 kB / 417.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.5367, allocations: 0 / 417.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.5367, allocations: 0 / 417.6 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003762/0.5371, allocations: 365.3 kB / 418 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.5371, allocations: 0 / 418 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.385e-05/0.5371, allocations: 15.98 kB / 418 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003781/0.5375, allocations: 121.6 kB / 418.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.5376, allocations: 4 kB / 418.1 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003445/0.541, allocations: 3.463 MB / 421.6 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.541, allocations: 3.938 kB / 421.6 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008499/0.5419, allocations: 431.9 kB / 422 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.901e-05/0.542, allocations: 108.7 kB / 422.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.542, allocations: 4.188 kB / 422.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002058/0.5422, allocations: 31.97 kB / 422.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.726e-05/0.5423, allocations: 15.98 kB / 422.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.5423, allocations: 4 kB / 422.2 MB, free: 2.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002212/0.5425, allocations: 221.9 kB / 422.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5425, allocations: 3.938 kB / 422.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005068/0.5431, allocations: 99.78 kB / 422.5 MB, free: 2.066 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.0001655/0.5432, allocations: 107.7 kB / 422.6 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.5443, allocations: 0.5128 MB / 423.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5443, allocations: 0 / 423.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004285/0.5448, allocations: 345.7 kB / 423.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004143/0.5452, allocations: 43.23 kB / 423.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.5463, allocations: 0.5732 MB / 424 MB, free: 424 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.5467, allocations: 0.7795 MB / 424.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.834e-05/0.5468, allocations: 26.97 kB / 424.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.283e-05/0.5469, allocations: 19.44 kB / 424.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.5469, allocations: 0 / 424.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of Templates: time 0.008124/0.555, allocations: 4.012 MB / 428.9 MB, free: 11.59 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/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