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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 107.8 kB / 18.48 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 198.6 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 225.6 MB / 249.8 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 51.94 kB / 366.4 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1038, allocations: 52.15 MB / 418.5 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005567/0.1094, allocations: 3.373 MB / 421.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001698/0.1111, allocations: 0.8182 MB / 422.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004292/0.1115, allocations: 4 kB / 422.7 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.1118, allocations: 71.3 kB / 422.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004513/0.1122, allocations: 123 kB / 422.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004421/0.1127, allocations: 135.8 kB / 423 MB, free: 8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006804/0.1134, allocations: 0.4902 MB / 423.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002768/0.1136, allocations: 133 kB / 423.7 MB, free: 7.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.114, allocations: 195.3 kB / 423.9 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003052/0.1143, allocations: 195.2 kB / 424 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.873e-05/0.1144, allocations: 52 kB / 424.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8e-05/0.1144, allocations: 48 kB / 424.1 MB, free: 6.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.339e-05/0.1145, allocations: 107.6 kB / 424.2 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.1148, allocations: 222.9 kB / 424.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006154/0.1154, allocations: 0.5643 MB / 425 MB, free: 6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.1154, allocations: 0 / 425 MB, free: 6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1154, allocations: 0 / 425 MB, free: 6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.975e-05/0.1154, allocations: 0 / 425 MB, free: 6 MB / 350.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.001329/0.1167, allocations: 0.7054 MB / 425.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.1168, allocations: 8.031 kB / 425.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.268e-05/0.1168, allocations: 9.188 kB / 425.7 MB, free: 5.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.398e-05/0.1169, allocations: 74.72 kB / 425.8 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.806e-05/0.117, allocations: 48.66 kB / 425.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004995/0.1175, allocations: 316.8 kB / 426.2 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.627e-05/0.1175, allocations: 33.12 kB / 426.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.758e-05/0.1176, allocations: 32 kB / 426.2 MB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007335/0.1183, allocations: 394.1 kB / 426.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.1183, allocations: 0 / 426.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.644e-05/0.1184, allocations: 16 kB / 426.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1184, allocations: 8 kB / 426.6 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006551/0.119, allocations: 295.9 kB / 426.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.1214, allocations: 1.444 MB / 428.4 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006441/0.122, allocations: 218.8 kB / 428.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.1222, allocations: 92.73 kB / 428.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.1223, allocations: 0 / 428.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.1223, allocations: 42.5 kB / 428.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.062e-06/0.1223, allocations: 0 / 428.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.00224/0.1245, allocations: 0.7572 MB / 429.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.1246, allocations: 55.34 kB / 429.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003561/0.1249, allocations: 315.3 kB / 429.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.125, allocations: 29.7 kB / 429.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.1251, allocations: 228.2 kB / 430.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.24e-05/0.1252, allocations: 63.47 kB / 430.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.289e-05/0.1253, allocations: 57.66 kB / 430.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.1254, allocations: 334.8 kB / 430.5 MB, free: 164 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.1256, allocations: 91.89 kB / 430.6 MB, free: 72 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.1259, allocations: 157.5 kB / 430.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004667/0.1264, allocations: 247.1 kB / 431 MB, free: 15.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1264, allocations: 0 / 431 MB, free: 15.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001024/0.1274, allocations: 426.9 kB / 431.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.1274, allocations: 4 kB / 431.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.1274, allocations: 4 kB / 431.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004599/0.1279, allocations: 113.7 kB / 431.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.128, allocations: 43.91 kB / 431.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004312/0.1324, allocations: 3.576 MB / 435.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.1326, allocations: 35.8 kB / 435.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.1326, allocations: 12 kB / 435.2 MB, free: 11.12 MB / 366.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.0001706/0.1328, allocations: 154.4 kB / 435.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.054e-05/0.1328, allocations: 35.75 kB / 435.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.392e-05/0.1329, allocations: 30.3 kB / 435.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1329, allocations: 4.062 kB / 435.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1329, allocations: 0 / 435.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1329, allocations: 3.984 kB / 435.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004067/0.1333, allocations: 357.4 kB / 435.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1333, allocations: 0 / 435.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.188e-05/0.1334, allocations: 23.92 kB / 435.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003729/0.1338, allocations: 113.6 kB / 435.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.1338, allocations: 4 kB / 435.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00382/0.1376, allocations: 3.475 MB / 439.4 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1376, allocations: 0 / 439.4 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009126/0.1385, allocations: 432.8 kB / 439.8 MB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.721e-05/0.1386, allocations: 112.9 kB / 439.9 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.973e-05/0.1387, allocations: 0 / 439.9 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.1389, allocations: 28.16 kB / 440 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.459e-05/0.139, allocations: 19.92 kB / 440 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.139, allocations: 12 kB / 440 MB, free: 5.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002332/0.1392, allocations: 221.9 kB / 440.2 MB, free: 5.734 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1392, allocations: 0 / 440.2 MB, free: 5.734 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004975/0.1397, allocations: 95.84 kB / 440.3 MB, free: 5.641 MB / 366.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.00128/0.141, allocations: 0.9744 MB / 441.3 MB, free: 4.637 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.1422, allocations: 0.5 MB / 441.8 MB, free: 4.113 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1422, allocations: 4.062 kB / 441.8 MB, free: 4.109 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004653/0.1426, allocations: 337.2 kB / 442.1 MB, free: 3.754 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004116/0.143, allocations: 56.48 kB / 442.2 MB, free: 3.699 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005239/0.1483, allocations: 3.243 MB / 445.4 MB, free: 300 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1931/0.3414, allocations: 0.7749 MB / 446.2 MB, free: 29.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001376/0.3415, allocations: 23.92 kB / 446.2 MB, free: 29.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.3417, allocations: 101.1 kB / 446.3 MB, free: 29.61 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3417, allocations: 3.031 kB / 446.3 MB, free: 29.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03654/0.3782, allocations: 7.199 MB / 453.5 MB, free: 29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.37, allocations: 10.17 kB / 453.5 MB, free: 28.99 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.767098563024774]