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.001384/0.001384, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.0018/0.0018, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 8.008 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002434/0.002434, allocations: 51.92 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2936, allocations: 53.36 MB / 431.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005123/0.2987, allocations: 3.424 MB / 434.6 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001742/0.3005, allocations: 0.861 MB / 435.5 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003/0.3008, allocations: 7.938 kB / 435.5 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002397/0.301, allocations: 71.34 kB / 435.5 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003427/0.3014, allocations: 123 kB / 435.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004185/0.3018, allocations: 151.7 kB / 435.8 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006353/0.3024, allocations: 0.4902 MB / 436.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002832/0.3027, allocations: 131 kB / 436.4 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003124/0.303, allocations: 191.3 kB / 436.6 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002553/0.3033, allocations: 203.1 kB / 436.8 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.782e-05/0.3033, allocations: 48 kB / 436.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.3034, allocations: 59.98 kB / 436.9 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.126e-05/0.3035, allocations: 99.69 kB / 437 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002024/0.3037, allocations: 222.9 kB / 437.2 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006278/0.3044, allocations: 0.5604 MB / 437.8 MB, free: 212 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3044, allocations: 4 kB / 437.8 MB, free: 208 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3044, allocations: 0 / 437.8 MB, free: 208 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.403e-06/0.3044, allocations: 0 / 437.8 MB, free: 208 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.001134/0.3055, allocations: 0.6419 MB / 438.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.3055, allocations: 11.97 kB / 438.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.728e-05/0.3056, allocations: 78.66 kB / 438.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.3058, allocations: 56.64 kB / 438.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004552/0.3063, allocations: 270.7 kB / 438.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/0.3063, allocations: 29.36 kB / 438.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.358e-05/0.3063, allocations: 39.94 kB / 438.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006796/0.307, allocations: 382.2 kB / 439.3 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.307, allocations: 4 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.602e-05/0.3071, allocations: 16 kB / 439.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.3071, allocations: 8 kB / 439.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006214/0.3077, allocations: 299.8 kB / 439.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.3099, allocations: 1.396 MB / 441 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006324/0.3106, allocations: 226.7 kB / 441.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/0.3108, allocations: 92.81 kB / 441.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.3108, allocations: 288 / 441.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/0.3108, allocations: 34.56 kB / 441.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.293e-06/0.3108, allocations: 0 / 441.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.002105/0.3129, allocations: 0.6002 MB / 441.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.313, allocations: 59.34 kB / 442 MB, free: 11.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003683/0.3133, allocations: 320.5 kB / 442.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.3134, allocations: 25.7 kB / 442.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.3135, allocations: 244.1 kB / 442.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.481e-05/0.3136, allocations: 51.55 kB / 442.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.623e-05/0.3137, allocations: 53.7 kB / 442.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.3138, allocations: 334.8 kB / 443 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.3141, allocations: 91.95 kB / 443.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002616/0.3143, allocations: 154.1 kB / 443.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000451/0.3148, allocations: 256.2 kB / 443.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.3148, allocations: 4 kB / 443.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000983/0.3158, allocations: 422.9 kB / 443.9 MB, free: 9.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.3158, allocations: 8 kB / 443.9 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.3158, allocations: 0 / 443.9 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004847/0.3163, allocations: 121.6 kB / 444 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.3164, allocations: 39.92 kB / 444.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00418/0.3206, allocations: 3.353 MB / 447.4 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/0.3208, allocations: 44.02 kB / 447.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.062e-05/0.3209, allocations: 12 kB / 447.5 MB, free: 5.941 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.0001718/0.321, allocations: 153.8 kB / 447.6 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.647e-05/0.3211, allocations: 35.75 kB / 447.7 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.591e-05/0.3211, allocations: 30.25 kB / 447.7 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3211, allocations: 3.938 kB / 447.7 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3211, allocations: 3.984 kB / 447.7 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.3211, allocations: 4 kB / 447.7 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000403/0.3216, allocations: 344.5 kB / 448 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3216, allocations: 0 / 448 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.632e-05/0.3216, allocations: 19.92 kB / 448.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003522/0.322, allocations: 117.6 kB / 448.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.322, allocations: 0 / 448.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003545/0.3255, allocations: 3.26 MB / 451.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3255, allocations: 0 / 451.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009846/0.3265, allocations: 435.5 kB / 451.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.431e-05/0.3266, allocations: 31.78 kB / 451.9 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.227e-05/0.3266, allocations: 4 kB / 451.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.3268, allocations: 23.98 kB / 451.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/0.3269, allocations: 15.97 kB / 451.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.3269, allocations: 4 kB / 451.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002458/0.3271, allocations: 227.1 kB / 452.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3271, allocations: 3.938 kB / 452.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000492/0.3276, allocations: 103.8 kB / 452.3 MB, free: 0.8516 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.001217/0.3288, allocations: 0.9559 MB / 453.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.33, allocations: 0.5197 MB / 453.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.33, allocations: 0.5 kB / 453.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004293/0.3304, allocations: 333.2 kB / 454.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004083/0.3308, allocations: 54.61 kB / 454.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005019/0.3358, allocations: 3.258 MB / 457.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000426/0.3363, allocations: 0.7795 MB / 458.2 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.3364, allocations: 30.95 kB / 458.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.3365, allocations: 103.4 kB / 458.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3365, allocations: 0 / 458.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04035/0.3769, allocations: 7.404 MB / 465.7 MB, free: 3.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.3, allocations: 4.062 kB / 465.7 MB, free: 3.328 MB / 366.1 MB " [Timeout remaining time 647] (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.759216927923262]