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.001331/0.001331, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 207.8 kB / 19.25 MB, free: 3.941 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.481/1.481, allocations: 227.7 MB / 247.7 MB, free: 10.35 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.001954/0.001954, allocations: 65.27 kB / 307.9 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1089, allocations: 50.53 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.006194/0.1152, allocations: 3.399 MB / 361.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.117, allocations: 0.8571 MB / 362.7 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001926/0.1172, allocations: 12 kB / 362.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002395/0.1175, allocations: 63.36 kB / 362.8 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002546/0.1177, allocations: 122.9 kB / 362.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003833/0.1181, allocations: 151.8 kB / 363 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005559/0.1187, allocations: 498 kB / 363.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003119/0.119, allocations: 184.9 kB / 363.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003073/0.1193, allocations: 187.4 kB / 363.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002598/0.1196, allocations: 199.1 kB / 364.1 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.995e-05/0.1197, allocations: 48 kB / 364.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.1198, allocations: 59.98 kB / 364.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.382e-05/0.1199, allocations: 91.69 kB / 364.3 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002292/0.1202, allocations: 222.9 kB / 364.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005985/0.1208, allocations: 0.5609 MB / 365 MB, free: 7.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1208, allocations: 0 / 365 MB, free: 7.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1208, allocations: 0 / 365 MB, free: 7.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.1208, allocations: 0 / 365 MB, free: 7.305 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.001265/0.1221, allocations: 0.7019 MB / 365.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.1221, allocations: 16.03 kB / 365.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002207/0.1223, allocations: 52.36 kB / 365.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.1228, allocations: 328.6 kB / 366.1 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.1228, allocations: 21.38 kB / 366.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.571e-05/0.1229, allocations: 40.12 kB / 366.2 MB, free: 6.062 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007408/0.1236, allocations: 382.2 kB / 366.6 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.1237, allocations: 7.938 kB / 366.6 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.682e-05/0.1237, allocations: 12 kB / 366.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.1237, allocations: 11.98 kB / 366.6 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007318/0.1245, allocations: 303.8 kB / 366.9 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002476/0.1269, allocations: 1.447 MB / 368.3 MB, free: 3.809 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006885/0.1276, allocations: 242.7 kB / 368.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002278/0.1279, allocations: 92.81 kB / 368.7 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.1279, allocations: 4 kB / 368.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.128, allocations: 30.56 kB / 368.7 MB, free: 3.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.128, allocations: 4 kB / 368.7 MB, free: 3.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002402/0.1304, allocations: 0.7538 MB / 369.5 MB, free: 2.621 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.1304, allocations: 55.41 kB / 369.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003829/0.1308, allocations: 324.3 kB / 369.8 MB, free: 2.234 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.1309, allocations: 29.7 kB / 369.9 MB, free: 2.199 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.131, allocations: 223.7 kB / 370.1 MB, free: 1.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.384e-05/0.1311, allocations: 59.19 kB / 370.1 MB, free: 1.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.818e-05/0.1312, allocations: 57.61 kB / 370.2 MB, free: 1.855 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1314, allocations: 334.8 kB / 370.5 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.1316, allocations: 83.95 kB / 370.6 MB, free: 1.438 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.1319, allocations: 157.4 kB / 370.8 MB, free: 1.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00049/0.1324, allocations: 245.3 kB / 371 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.1324, allocations: 0 / 371 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001062/0.1335, allocations: 429.9 kB / 371.4 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.1335, allocations: 8.062 kB / 371.4 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.1335, allocations: 4 kB / 371.4 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004917/0.134, allocations: 125.6 kB / 371.6 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/0.1342, allocations: 43.91 kB / 371.6 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1697/0.3039, allocations: 3.555 MB / 375.1 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.3043, allocations: 35.52 kB / 375.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.3043, allocations: 9.344 kB / 375.2 MB, free: 17.68 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.0001686/0.3045, allocations: 169.4 kB / 375.4 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.933e-05/0.3045, allocations: 29.12 kB / 375.4 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.831e-05/0.3046, allocations: 29.02 kB / 375.4 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3046, allocations: 6.219 kB / 375.4 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3046, allocations: 0 / 375.4 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.3046, allocations: 6.047 kB / 375.4 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004211/0.3051, allocations: 368.5 kB / 375.8 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.3051, allocations: 1.625 kB / 375.8 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.127e-05/0.3052, allocations: 12.5 kB / 375.8 MB, free: 17.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004533/0.3056, allocations: 116.2 kB / 375.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.3057, allocations: 8.156 kB / 375.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003186/0.3089, allocations: 3.466 MB / 379.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3089, allocations: 0.8125 kB / 379.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000972/0.3099, allocations: 439.2 kB / 379.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.866e-05/0.3099, allocations: 110.9 kB / 379.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.355e-05/0.31, allocations: 2.031 kB / 379.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003094/0.3103, allocations: 26.23 kB / 380 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.12e-05/0.3104, allocations: 16.69 kB / 380 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.3104, allocations: 7.406 kB / 380 MB, free: 13.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.3106, allocations: 225.4 kB / 380.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3107, allocations: 0 / 380.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005439/0.3112, allocations: 102.7 kB / 380.3 MB, free: 13.58 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.0001262/0.3113, allocations: 103.3 kB / 380.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001199/0.3125, allocations: 0.5091 MB / 380.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3126, allocations: 0 / 380.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003945/0.313, allocations: 349.3 kB / 381.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004748/0.3135, allocations: 52.88 kB / 381.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.3145, allocations: 0.6089 MB / 381.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.3149, allocations: 0.7782 MB / 382.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.381e-05/0.3149, allocations: 25.23 kB / 382.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.315, allocations: 0 / 382.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of Templates: time 0.009788/0.3247, allocations: 6.748 MB / 389.5 MB, free: 10.11 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/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