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.0008538/0.0008538, allocations: 87.12 kB / 16.65 MB, free: 6.535 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.001256/0.001256, allocations: 176.8 kB / 17.56 MB, free: 6.18 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.583/1.583, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003273/0.0003274, allocations: 12.12 kB / 301.4 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1357, allocations: 50.41 MB / 351.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005034/0.1407, allocations: 3.016 MB / 354.9 MB, free: 440 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.1432, allocations: 0.7871 MB / 355.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004764/0.1437, allocations: 8 kB / 355.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002817/0.144, allocations: 51.59 kB / 355.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005139/0.1445, allocations: 111.2 kB / 355.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.145, allocations: 119.9 kB / 355.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006631/0.1456, allocations: 466 kB / 356.4 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000414/0.1461, allocations: 149.4 kB / 356.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004495/0.1465, allocations: 151.3 kB / 356.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.1469, allocations: 171.1 kB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.307e-05/0.147, allocations: 20 kB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.786e-05/0.1471, allocations: 24 kB / 356.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.375e-05/0.1472, allocations: 67.67 kB / 357 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003043/0.1475, allocations: 220.7 kB / 357.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000532/0.148, allocations: 0.5178 MB / 357.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.148, allocations: 4 kB / 357.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.148, allocations: 0 / 357.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.753e-05/0.1481, allocations: 0 / 357.7 MB, free: 13.57 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.001225/0.1493, allocations: 0.6474 MB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.1493, allocations: 8.031 kB / 358.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.1495, allocations: 44.47 kB / 358.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004668/0.15, allocations: 312.7 kB / 358.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.15, allocations: 25.38 kB / 358.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.622e-05/0.1501, allocations: 36.12 kB / 358.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007974/0.1509, allocations: 394.2 kB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.1509, allocations: 0 / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.942e-05/0.151, allocations: 20 kB / 359.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.151, allocations: 8 kB / 359.2 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006648/0.1517, allocations: 307.8 kB / 359.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002517/0.1542, allocations: 1.467 MB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000678/0.1549, allocations: 250.7 kB / 361.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002439/0.1551, allocations: 100.8 kB / 361.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.1552, allocations: 0 / 361.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.1552, allocations: 34.56 kB / 361.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.343e-06/0.1552, allocations: 4 kB / 361.3 MB, free: 9.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002358/0.1576, allocations: 0.8095 MB / 362.1 MB, free: 8.875 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.1576, allocations: 51.41 kB / 362.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000399/0.1581, allocations: 323.2 kB / 362.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.1581, allocations: 29.7 kB / 362.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.1582, allocations: 223.7 kB / 362.7 MB, free: 8.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.738e-05/0.1583, allocations: 59.19 kB / 362.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.185e-05/0.1584, allocations: 25.72 kB / 362.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.1585, allocations: 334.8 kB / 363.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.1588, allocations: 91.95 kB / 363.2 MB, free: 7.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.1591, allocations: 157.4 kB / 363.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006055/0.1597, allocations: 264 kB / 363.7 MB, free: 7.234 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.1598, allocations: 4 kB / 363.7 MB, free: 7.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001267/0.161, allocations: 446.7 kB / 364.1 MB, free: 6.781 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/0.1611, allocations: 4 kB / 364.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/0.1611, allocations: 7.984 kB / 364.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005986/0.1617, allocations: 125.6 kB / 364.2 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.1619, allocations: 35.98 kB / 364.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00458/0.1665, allocations: 3.318 MB / 367.6 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003061/0.1668, allocations: 35.67 kB / 367.6 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.1669, allocations: 16.06 kB / 367.6 MB, free: 2.973 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.0002435/0.1671, allocations: 157.7 kB / 367.8 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.164e-05/0.1672, allocations: 27.72 kB / 367.8 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.052e-05/0.1673, allocations: 30.3 kB / 367.8 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.1673, allocations: 0 / 367.8 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.1673, allocations: 0 / 367.8 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1673, allocations: 11.86 kB / 367.9 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005308/0.1679, allocations: 365.3 kB / 368.2 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.1679, allocations: 4 kB / 368.2 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.331e-05/0.168, allocations: 19.98 kB / 368.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003913/0.1684, allocations: 117.8 kB / 368.4 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.1684, allocations: 4 kB / 368.4 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2832/0.4516, allocations: 3.199 MB / 371.6 MB, free: 23.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.4517, allocations: 0.5938 kB / 371.6 MB, free: 23.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.453, allocations: 456.6 kB / 372 MB, free: 23.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.4531, allocations: 108.6 kB / 372.1 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.248e-05/0.4532, allocations: 2.484 kB / 372.1 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.4535, allocations: 32.81 kB / 372.1 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.4536, allocations: 16.77 kB / 372.2 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.957e-05/0.4536, allocations: 6.875 kB / 372.2 MB, free: 22.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004232/0.4541, allocations: 221.6 kB / 372.4 MB, free: 22.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4541, allocations: 0.6875 kB / 372.4 MB, free: 22.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007042/0.4548, allocations: 99.33 kB / 372.5 MB, free: 22.86 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.0002127/0.455, allocations: 106.2 kB / 372.6 MB, free: 22.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.4565, allocations: 0.5295 MB / 373.1 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4566, allocations: 0.6562 kB / 373.1 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005578/0.4571, allocations: 348 kB / 373.5 MB, free: 22.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006171/0.4578, allocations: 55.42 kB / 373.5 MB, free: 22.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.4593, allocations: 0.7236 MB / 374.2 MB, free: 21.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.4597, allocations: 0.7809 MB / 375 MB, free: 21.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.4599, allocations: 26.5 kB / 375 MB, free: 21.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.677e-05/0.4599, allocations: 23.22 kB / 375.1 MB, free: 21.22 MB / 302.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4599, allocations: 0 / 375.1 MB, free: 21.22 MB / 302.1 MB Notification: Performance of Templates: time 0.01229/0.4722, allocations: 3.683 MB / 378.7 MB, free: 21.04 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