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.001095/0.001095, allocations: 110.2 kB / 16.51 MB, free: 6.707 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.001084/0.001084, allocations: 190.6 kB / 17.43 MB, free: 6.066 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.334/1.334, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 48.02 kB / 300 MB, free: 6.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09752/0.09866, allocations: 49.44 MB / 349.4 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.007497/0.1062, allocations: 3.41 MB / 352.8 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00223/0.1085, allocations: 0.791 MB / 353.6 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004129/0.1089, allocations: 4 kB / 353.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003226/0.1093, allocations: 47.61 kB / 353.7 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004925/0.1098, allocations: 115.1 kB / 353.8 MB, free: 444 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004523/0.1103, allocations: 115.9 kB / 353.9 MB, free: 328 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007499/0.111, allocations: 474 kB / 354.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003662/0.1114, allocations: 153.4 kB / 354.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000386/0.1118, allocations: 155.4 kB / 354.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003684/0.1122, allocations: 191.1 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.687e-05/0.1123, allocations: 24 kB / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.1124, allocations: 28 kB / 354.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.1125, allocations: 79.62 kB / 355 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003191/0.1129, allocations: 203 kB / 355.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006977/0.1136, allocations: 0.5336 MB / 355.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.1136, allocations: 0 / 355.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1136, allocations: 0 / 355.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.346e-05/0.1137, allocations: 4 kB / 355.7 MB, free: 14.49 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.00172/0.1154, allocations: 0.7018 MB / 356.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.1155, allocations: 12.03 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.1156, allocations: 44.41 kB / 356.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005456/0.1162, allocations: 312.7 kB / 356.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/0.1162, allocations: 29.31 kB / 356.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.448e-05/0.1163, allocations: 36.12 kB / 356.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.1173, allocations: 390.2 kB / 357.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.1174, allocations: 0 / 357.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-05/0.1174, allocations: 16 kB / 357.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.1175, allocations: 8 kB / 357.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.1185, allocations: 303.8 kB / 357.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003261/0.1218, allocations: 1.439 MB / 359 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009047/0.1227, allocations: 242.7 kB / 359.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003233/0.123, allocations: 96.81 kB / 359.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.1231, allocations: 4 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.1231, allocations: 34.56 kB / 359.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.844e-06/0.1231, allocations: 0 / 359.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.003255/0.1264, allocations: 0.7581 MB / 360.1 MB, free: 9.836 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.1264, allocations: 59.39 kB / 360.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005131/0.127, allocations: 307.3 kB / 360.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.127, allocations: 37.7 kB / 360.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/0.1272, allocations: 227.6 kB / 360.7 MB, free: 9.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.186e-05/0.1273, allocations: 59.19 kB / 360.8 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.1274, allocations: 53.61 kB / 360.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.1276, allocations: 334.8 kB / 361.1 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003435/0.128, allocations: 83.95 kB / 361.2 MB, free: 8.648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003976/0.1284, allocations: 157.4 kB / 361.4 MB, free: 8.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006921/0.1291, allocations: 249.2 kB / 361.6 MB, free: 8.184 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.1291, allocations: 0 / 361.6 MB, free: 8.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001426/0.1305, allocations: 425.9 kB / 362 MB, free: 7.758 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.1306, allocations: 4 kB / 362 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.1306, allocations: 8 kB / 362.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005993/0.1312, allocations: 121.6 kB / 362.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002372/0.1315, allocations: 43.91 kB / 362.2 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005604/0.1371, allocations: 3.263 MB / 365.5 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003068/0.1374, allocations: 31.69 kB / 365.5 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.789e-05/0.1375, allocations: 16.11 kB / 365.5 MB, free: 4.004 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.0002385/0.1377, allocations: 157.7 kB / 365.7 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.539e-05/0.1378, allocations: 31.62 kB / 365.7 MB, free: 3.809 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.07e-05/0.1379, allocations: 38.36 kB / 365.8 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1379, allocations: 0 / 365.8 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1379, allocations: 7.938 kB / 365.8 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.1379, allocations: 0 / 365.8 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005593/0.1385, allocations: 365.3 kB / 366.1 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1385, allocations: 3.938 kB / 366.1 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.1386, allocations: 8 kB / 366.1 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000512/0.1392, allocations: 113.6 kB / 366.2 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.1392, allocations: 4 kB / 366.2 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2131/0.3524, allocations: 3.167 MB / 369.4 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3524, allocations: 1.094 kB / 369.4 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.3536, allocations: 434.9 kB / 369.8 MB, free: 24.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.3538, allocations: 107.3 kB / 369.9 MB, free: 24.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.699e-05/0.3539, allocations: 4.938 kB / 369.9 MB, free: 24.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002694/0.3541, allocations: 24.36 kB / 370 MB, free: 24.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.141e-05/0.3542, allocations: 16.89 kB / 370 MB, free: 24.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.3543, allocations: 9.172 kB / 370 MB, free: 24.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002981/0.3546, allocations: 221.7 kB / 370.2 MB, free: 24.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3546, allocations: 0 / 370.2 MB, free: 24.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006065/0.3552, allocations: 95.62 kB / 370.3 MB, free: 24.28 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.0001549/0.3554, allocations: 108.5 kB / 370.4 MB, free: 24.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00124/0.3566, allocations: 0.5162 MB / 370.9 MB, free: 23.97 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3566, allocations: 0 / 370.9 MB, free: 23.97 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004531/0.3571, allocations: 332 kB / 371.2 MB, free: 23.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005349/0.3576, allocations: 48.84 kB / 371.3 MB, free: 23.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.3589, allocations: 0.7004 MB / 372 MB, free: 23.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.3592, allocations: 0.7808 MB / 372.8 MB, free: 22.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001465/0.3594, allocations: 30.03 kB / 372.8 MB, free: 22.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.913e-05/0.3594, allocations: 19.91 kB / 372.8 MB, free: 22.65 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3594, allocations: 3.594 kB / 372.8 MB, free: 22.65 MB / 302.1 MB Notification: Performance of Templates: time 0.01145/0.3709, allocations: 3.727 MB / 376.6 MB, free: 22.49 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