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.001146/0.001146, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001293/0.001293, allocations: 181.2 kB / 17.2 MB, free: 5.914 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.413/1.413, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002591/0.0002591, allocations: 7.922 kB / 300.7 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1171, allocations: 50.43 MB / 351.2 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.003098/0.1202, allocations: 2.721 MB / 353.9 MB, free: 8.973 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.1213, allocations: 0.7954 MB / 354.7 MB, free: 8.176 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001539/0.1215, allocations: 7.938 kB / 354.7 MB, free: 8.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.302e-05/0.1216, allocations: 43.66 kB / 354.7 MB, free: 8.125 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002508/0.1218, allocations: 147.5 kB / 354.9 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002219/0.1221, allocations: 83.91 kB / 354.9 MB, free: 7.898 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003599/0.1224, allocations: 319.3 kB / 355.3 MB, free: 7.586 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.1227, allocations: 136.4 kB / 355.4 MB, free: 7.438 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.1229, allocations: 155.3 kB / 355.5 MB, free: 7.285 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.1231, allocations: 159.3 kB / 355.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.1231, allocations: 24 kB / 355.7 MB, free: 7.105 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.183e-05/0.1232, allocations: 20 kB / 355.7 MB, free: 7.086 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.077e-05/0.1233, allocations: 63.69 kB / 355.8 MB, free: 7.023 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.359e-05/0.1233, allocations: 97.52 kB / 355.9 MB, free: 6.922 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003617/0.1237, allocations: 442.7 kB / 356.3 MB, free: 6.488 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1237, allocations: 4 kB / 356.3 MB, free: 6.484 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1237, allocations: 0 / 356.3 MB, free: 6.484 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.1237, allocations: 4 kB / 356.3 MB, free: 6.48 MB / 286.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.0009884/0.1247, allocations: 0.6355 MB / 357 MB, free: 5.797 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.1248, allocations: 8.031 kB / 357 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.752e-05/0.1249, allocations: 43.53 kB / 357 MB, free: 5.746 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.1252, allocations: 311.2 kB / 357.3 MB, free: 5.402 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.1253, allocations: 25 kB / 357.4 MB, free: 5.379 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.662e-05/0.1253, allocations: 40 kB / 357.4 MB, free: 5.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006764/0.126, allocations: 386.1 kB / 357.8 MB, free: 4.953 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.126, allocations: 0 / 357.8 MB, free: 4.953 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4e-05/0.1261, allocations: 19.95 kB / 357.8 MB, free: 4.934 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.1261, allocations: 8 kB / 357.8 MB, free: 4.926 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006183/0.1267, allocations: 307.9 kB / 358.1 MB, free: 4.621 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.1289, allocations: 1.463 MB / 359.6 MB, free: 3.062 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006123/0.1295, allocations: 254.7 kB / 359.8 MB, free: 2.805 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.1295, allocations: 3.984 kB / 359.8 MB, free: 2.801 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.1296, allocations: 42.5 kB / 359.9 MB, free: 2.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.342e-06/0.1296, allocations: 0 / 359.9 MB, free: 2.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.00218/0.1318, allocations: 0.7901 MB / 360.6 MB, free: 1.91 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.541e-05/0.1318, allocations: 59.39 kB / 360.7 MB, free: 1.84 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/0.1321, allocations: 315.2 kB / 361 MB, free: 1.527 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.1322, allocations: 29.7 kB / 361 MB, free: 1.492 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.1323, allocations: 215.8 kB / 361.2 MB, free: 1.273 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.61e-05/0.1324, allocations: 59.19 kB / 361.3 MB, free: 1.215 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.164e-05/0.1324, allocations: 7.938 kB / 361.3 MB, free: 1.207 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1325, allocations: 338.8 kB / 361.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.1327, allocations: 87.95 kB / 361.7 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002557/0.133, allocations: 165.3 kB / 361.9 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.1332, allocations: 104 kB / 362 MB, free: 496 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.1332, allocations: 0 / 362 MB, free: 496 kB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001007/0.1342, allocations: 449.4 kB / 362.4 MB, free: 36 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.1343, allocations: 4 kB / 362.4 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.1343, allocations: 7.938 kB / 362.4 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005483/0.1348, allocations: 121.7 kB / 362.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.1351, allocations: 39.91 kB / 362.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004384/0.1394, allocations: 3.353 MB / 366 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002773/0.1397, allocations: 43.73 kB / 366 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/0.1398, allocations: 12 kB / 366 MB, free: 12.19 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002393/0.14, allocations: 157.7 kB / 366.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.895e-05/0.1401, allocations: 27.67 kB / 366.2 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.975e-05/0.1402, allocations: 30.3 kB / 366.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.1402, allocations: 4 kB / 366.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.1402, allocations: 4 kB / 366.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1402, allocations: 0 / 366.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004235/0.1406, allocations: 361.3 kB / 366.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1406, allocations: 0 / 366.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.406e-05/0.1407, allocations: 19.94 kB / 366.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003878/0.1411, allocations: 117.6 kB / 366.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.1411, allocations: 8 kB / 366.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003281/0.1444, allocations: 3.244 MB / 370 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1444, allocations: 0 / 370 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008654/0.1453, allocations: 450.8 kB / 370.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.574e-05/0.1454, allocations: 104.8 kB / 370.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.1454, allocations: 11.98 kB / 370.5 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.1457, allocations: 27.98 kB / 370.5 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.982e-05/0.1457, allocations: 11.98 kB / 370.6 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.1458, allocations: 7.984 kB / 370.6 MB, free: 7.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002093/0.146, allocations: 221.9 kB / 370.8 MB, free: 7.035 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.146, allocations: 0 / 370.8 MB, free: 7.035 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005083/0.1465, allocations: 95.75 kB / 370.9 MB, free: 6.941 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001404/0.1466, allocations: 111.2 kB / 371 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.1477, allocations: 0.5323 MB / 371.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1477, allocations: 0 / 371.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004117/0.1482, allocations: 345.8 kB / 371.9 MB, free: 5.902 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.1485, allocations: 52.73 kB / 371.9 MB, free: 5.852 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.1495, allocations: 0.6916 MB / 372.6 MB, free: 5.141 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.1499, allocations: 0.7872 MB / 373.4 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001031/0.15, allocations: 26.97 kB / 373.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.248e-05/0.15, allocations: 19.44 kB / 373.4 MB, free: 4.277 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.15, allocations: 0 / 373.4 MB, free: 4.277 MB / 302.1 MB Notification: Performance of Templates: time 0.006998/0.157, allocations: 3.556 MB / 377 MB, free: 0.75 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches