Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001689/0.001689, allocations: 212.5 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.438/1.438, allocations: 230.6 MB / 258.3 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 39.94 kB / 378.5 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.281, allocations: 53.36 MB / 431.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.00457/0.2855, allocations: 3.125 MB / 435 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001498/0.287, allocations: 0.8222 MB / 435.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.2872, allocations: 8 kB / 435.8 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001914/0.2874, allocations: 71.28 kB / 435.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.2876, allocations: 119 kB / 436 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000345/0.2879, allocations: 151.8 kB / 436.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005069/0.2885, allocations: 0.498 MB / 436.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.2887, allocations: 125.4 kB / 436.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000273/0.289, allocations: 195.4 kB / 437 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.2892, allocations: 199.1 kB / 437.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.593e-05/0.2893, allocations: 48 kB / 437.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.2894, allocations: 52 kB / 437.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.809e-05/0.2895, allocations: 103.6 kB / 437.4 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001844/0.2896, allocations: 179.2 kB / 437.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005917/0.2902, allocations: 0.572 MB / 438.1 MB, free: 372 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.2902, allocations: 0 / 438.1 MB, free: 372 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2902, allocations: 0 / 438.1 MB, free: 372 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.2903, allocations: 7.984 kB / 438.1 MB, free: 364 kB / 334.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.001176/0.2914, allocations: 0.6417 MB / 438.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.2915, allocations: 12.03 kB / 438.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.082e-05/0.2915, allocations: 9.188 kB / 438.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.422e-05/0.2916, allocations: 74.72 kB / 438.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.2918, allocations: 56.64 kB / 438.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004753/0.2923, allocations: 270.7 kB / 439.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.2923, allocations: 29.12 kB / 439.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.896e-05/0.2924, allocations: 36 kB / 439.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000777/0.2931, allocations: 489 kB / 439.7 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.2931, allocations: 7.938 kB / 439.7 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.653e-05/0.2932, allocations: 12 kB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.2932, allocations: 12 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000659/0.2939, allocations: 295.9 kB / 440 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002227/0.2961, allocations: 1.295 MB / 441.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000644/0.2967, allocations: 226.7 kB / 441.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002143/0.2969, allocations: 81.11 kB / 441.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.219e-05/0.297, allocations: 8 kB / 441.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.297, allocations: 46.48 kB / 441.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.523e-06/0.297, allocations: 0 / 441.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.002164/0.2992, allocations: 0.5989 MB / 442.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.2992, allocations: 55.34 kB / 442.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003686/0.2996, allocations: 324.5 kB / 442.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.2996, allocations: 25.7 kB / 442.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.2998, allocations: 240.1 kB / 442.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.381e-05/0.2998, allocations: 55.53 kB / 443 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.63e-05/0.2999, allocations: 49.7 kB / 443 MB, free: 11.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3001, allocations: 338.8 kB / 443.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.3003, allocations: 83.95 kB / 443.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002662/0.3006, allocations: 166.1 kB / 443.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004646/0.301, allocations: 251.7 kB / 443.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.301, allocations: 0 / 443.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000989/0.302, allocations: 426.9 kB / 444.3 MB, free: 9.879 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.302, allocations: 8 kB / 444.3 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.302, allocations: 4 kB / 444.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004526/0.3025, allocations: 117.7 kB / 444.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.3027, allocations: 47.91 kB / 444.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004131/0.3068, allocations: 3.33 MB / 447.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.307, allocations: 35.77 kB / 447.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.505e-05/0.307, allocations: 15.98 kB / 447.8 MB, free: 6.086 MB / 350.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.0001811/0.3072, allocations: 153.8 kB / 448 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.931e-05/0.3073, allocations: 35.75 kB / 448 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.55e-05/0.3073, allocations: 30.25 kB / 448 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.3074, allocations: 4 kB / 448 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3074, allocations: 0 / 448 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3074, allocations: 128 / 448 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003678/0.3077, allocations: 304.5 kB / 448.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3077, allocations: 0 / 448.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.276e-05/0.3078, allocations: 19.92 kB / 448.4 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003674/0.3082, allocations: 113.6 kB / 448.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.3082, allocations: 4 kB / 448.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003594/0.3118, allocations: 3.237 MB / 451.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.3118, allocations: 4.031 kB / 451.7 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008914/0.3127, allocations: 428.7 kB / 452.1 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.26e-05/0.3127, allocations: 35.72 kB / 452.2 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.3128, allocations: 8 kB / 452.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.313, allocations: 23.97 kB / 452.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.313, allocations: 15.97 kB / 452.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.3131, allocations: 4 kB / 452.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000239/0.3133, allocations: 227.1 kB / 452.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3133, allocations: 0 / 452.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000482/0.3138, allocations: 99.78 kB / 452.5 MB, free: 1.062 MB / 350.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.001228/0.315, allocations: 0.9666 MB / 453.5 MB, free: 64 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.3161, allocations: 0.5119 MB / 454 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3161, allocations: 8.125 kB / 454 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004387/0.3166, allocations: 329.2 kB / 454.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004067/0.317, allocations: 40.42 kB / 454.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004823/0.3218, allocations: 3.267 MB / 457.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001715/0.322, allocations: 173.1 kB / 457.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.3221, allocations: 26.97 kB / 457.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.3222, allocations: 107.4 kB / 458 MB, free: 11.39 MB / 366.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3222, allocations: 0 / 458 MB, free: 11.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03488/0.3571, allocations: 7.5 MB / 465.5 MB, free: 4.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.52, allocations: 10.86 kB / 465.5 MB, free: 4.109 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_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: 15.994141140021384]