Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00178/0.00178, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00235/0.00235, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.547/1.547, allocations: 227.7 MB / 247.1 MB, free: 10.27 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 68.77 kB / 307.2 MB, free: 468 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1056, allocations: 50.54 MB / 357.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005339/0.111, allocations: 3.382 MB / 361.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.1129, allocations: 0.8689 MB / 362 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002017/0.1131, allocations: 4 kB / 362 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002432/0.1134, allocations: 67.36 kB / 362.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002599/0.1136, allocations: 122.9 kB / 362.2 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004102/0.114, allocations: 143.8 kB / 362.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005652/0.1146, allocations: 0.4941 MB / 362.9 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003426/0.115, allocations: 177 kB / 363 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003311/0.1153, allocations: 187.4 kB / 363.2 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.1156, allocations: 199.1 kB / 363.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.527e-05/0.1157, allocations: 52 kB / 363.5 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001174/0.1158, allocations: 55.98 kB / 363.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.019e-05/0.1159, allocations: 95.69 kB / 363.6 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002261/0.1161, allocations: 222.9 kB / 363.8 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000681/0.1168, allocations: 0.557 MB / 364.4 MB, free: 7.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.884e-06/0.1168, allocations: 4 kB / 364.4 MB, free: 7.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1168, allocations: 4 kB / 364.4 MB, free: 7.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.278e-06/0.1169, allocations: 0 / 364.4 MB, free: 7.254 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.001378/0.1183, allocations: 0.7057 MB / 365.1 MB, free: 6.496 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.1183, allocations: 8.031 kB / 365.1 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002139/0.1185, allocations: 56.36 kB / 365.2 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004334/0.119, allocations: 316.6 kB / 365.5 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.263e-05/0.119, allocations: 29.38 kB / 365.5 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.277e-05/0.1191, allocations: 36.12 kB / 365.5 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007212/0.1198, allocations: 390.2 kB / 365.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.1198, allocations: 0 / 365.9 MB, free: 5.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.788e-05/0.1199, allocations: 16 kB / 365.9 MB, free: 5.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.1199, allocations: 8 kB / 365.9 MB, free: 5.602 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006577/0.1205, allocations: 299.8 kB / 366.2 MB, free: 5.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.1229, allocations: 1.455 MB / 367.7 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006404/0.1235, allocations: 236 kB / 367.9 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.1238, allocations: 92.83 kB / 368 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.1238, allocations: 7.984 kB / 368 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.1238, allocations: 38.55 kB / 368.1 MB, free: 3.375 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.1239, allocations: 0 / 368.1 MB, free: 3.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002382/0.1262, allocations: 0.7557 MB / 368.8 MB, free: 2.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.1263, allocations: 51.41 kB / 368.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004555/0.1268, allocations: 320.4 kB / 369.2 MB, free: 2.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.1268, allocations: 29.7 kB / 369.2 MB, free: 2.156 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/0.127, allocations: 227.7 kB / 369.4 MB, free: 1.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.142e-05/0.1271, allocations: 59.19 kB / 369.5 MB, free: 1.871 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.1272, allocations: 53.61 kB / 369.5 MB, free: 1.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.1274, allocations: 334.8 kB / 369.9 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/0.1277, allocations: 87.95 kB / 369.9 MB, free: 1.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002983/0.128, allocations: 157.4 kB / 370.1 MB, free: 1.203 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005136/0.1285, allocations: 251.7 kB / 370.3 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.1285, allocations: 4 kB / 370.4 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001063/0.1296, allocations: 433.2 kB / 370.8 MB, free: 500 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.1296, allocations: 4 kB / 370.8 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.1296, allocations: 4 kB / 370.8 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005301/0.1302, allocations: 113.7 kB / 370.9 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.1303, allocations: 39.92 kB / 370.9 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2007/0.3311, allocations: 3.564 MB / 374.5 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002893/0.3314, allocations: 35 kB / 374.5 MB, free: 17.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.3314, allocations: 9.562 kB / 374.5 MB, free: 17.04 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.0001774/0.3316, allocations: 157.9 kB / 374.7 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.522e-05/0.3317, allocations: 29.11 kB / 374.7 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.212e-05/0.3318, allocations: 34.11 kB / 374.8 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3318, allocations: 5.562 kB / 374.8 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.3318, allocations: 0.5625 kB / 374.8 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.89e-06/0.3318, allocations: 1.844 kB / 374.8 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000433/0.3322, allocations: 372.4 kB / 375.1 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3322, allocations: 1.781 kB / 375.1 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.469e-05/0.3323, allocations: 13.64 kB / 375.1 MB, free: 16.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004097/0.3328, allocations: 112.5 kB / 375.3 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.3328, allocations: 5.734 kB / 375.3 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002957/0.3357, allocations: 3.467 MB / 378.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3358, allocations: 4.438 kB / 378.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000968/0.3367, allocations: 435 kB / 379.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.927e-05/0.3368, allocations: 107.4 kB / 379.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.386e-05/0.3369, allocations: 6.234 kB / 379.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.3371, allocations: 21.73 kB / 379.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.5e-05/0.3372, allocations: 22.52 kB / 379.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.3372, allocations: 4.734 kB / 379.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002588/0.3375, allocations: 226.6 kB / 379.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3375, allocations: 0 / 379.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005445/0.338, allocations: 102.2 kB / 379.6 MB, free: 13.2 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.0001411/0.3382, allocations: 98.81 kB / 379.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.3393, allocations: 0.5179 MB / 380.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.3393, allocations: 0 / 380.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003826/0.3397, allocations: 345.3 kB / 380.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004898/0.3402, allocations: 51.92 kB / 380.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.3413, allocations: 0.577 MB / 381.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002128/0.3415, allocations: 0.7786 MB / 382 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.3416, allocations: 33.19 kB / 382 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.976e-05/0.3417, allocations: 18.53 kB / 382 MB, free: 11.47 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3417, allocations: 4.922 kB / 382 MB, free: 11.47 MB / 302.1 MB Notification: Performance of Templates: time 0.009063/0.3507, allocations: 3.945 MB / 386 MB, free: 11.21 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches