Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.001575/0.001575, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001994/0.001994, allocations: 213.8 kB / 22.25 MB, free: 5.105 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.351/1.351, allocations: 230.6 MB / 256 MB, free: 7.844 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.955/2.955, allocations: 0.49 GB / 0.7951 GB, free: 35.46 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) 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(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 75.88 kB / 1.154 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3096, allocations: 176.1 MB / 1.326 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.002679/0.3123, allocations: 1.587 MB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0008481/0.3131, allocations: 494.7 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.037e-05/0.3132, allocations: 0 / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.528e-05/0.3132, allocations: 3.938 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.422e-05/0.3133, allocations: 3.938 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.3135, allocations: 47.88 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001226/0.3136, allocations: 67.84 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.825e-05/0.3137, allocations: 15.89 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.3138, allocations: 47.83 kB / 1.328 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 7.225e-05/0.3139, allocations: 31.84 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.659e-05/0.3139, allocations: 8 kB / 1.328 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.085e-05/0.314, allocations: 12 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.428e-05/0.314, allocations: 19.91 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.963e-05/0.314, allocations: 19.94 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001277/0.3141, allocations: 71.98 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3142, allocations: 4 kB / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.213e-06/0.3142, allocations: 0 / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.3142, allocations: 0 / 1.328 GB, free: 15.09 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005417/0.3147, allocations: 306.1 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.3147, allocations: 8.031 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.874e-05/0.3148, allocations: 42.67 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.3149, allocations: 20.88 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.3151, allocations: 122.5 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.3151, allocations: 4.375 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/0.3151, allocations: 4.375 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.3153, allocations: 93.69 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.3153, allocations: 0 / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.3153, allocations: 4 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.3153, allocations: 4 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.3155, allocations: 43.91 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004905/0.316, allocations: 283.8 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002408/0.3162, allocations: 86.56 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.239e-05/0.3163, allocations: 36.84 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.3163, allocations: 8 kB / 1.329 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.3165, allocations: 115.2 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.3165, allocations: 0 / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0003752/0.3169, allocations: 169.6 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.3169, allocations: 51.41 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.187e-05/0.317, allocations: 117.8 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.3171, allocations: 29.7 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.906e-05/0.3171, allocations: 92.36 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.19e-05/0.3171, allocations: 31.69 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.3172, allocations: 29.7 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.3173, allocations: 326.8 kB / 1.33 GB, free: 12.92 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.46e-05/0.3174, allocations: 27.98 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.47e-05/0.3175, allocations: 48.2 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.3176, allocations: 65.64 kB / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3176, allocations: 0 / 1.33 GB, free: 12.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002144/0.3178, allocations: 113.6 kB / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.3179, allocations: 4 kB / 1.33 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3179, allocations: 4 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.3179, allocations: 0 / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.707e-05/0.3179, allocations: 23.86 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.3179, allocations: 0 / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.53e-05/0.318, allocations: 8 kB / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.318, allocations: 0 / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition4,$whenCondition3,soc.suspend,soc.discharged,$PRE.soc.discharged,soc.charged,$PRE.soc.charged,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.3181, allocations: 132.5 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.489e-05/0.3182, allocations: 11.95 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.752e-05/0.3182, allocations: 8.375 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.3182, allocations: 4 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.3182, allocations: 384 / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3182, allocations: 7.969 kB / 1.331 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.3183, allocations: 160.8 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.3183, allocations: 0 / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.223e-05/0.3184, allocations: 15.94 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3184, allocations: 0 / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.3184, allocations: 7.984 kB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3184, allocations: 0 / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3184, allocations: 4 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003788/0.3188, allocations: 221.5 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.171e-05/0.3188, allocations: 7.891 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.689e-05/0.3189, allocations: 11.98 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.178e-05/0.3189, allocations: 4 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.409e-05/0.319, allocations: 19.91 kB / 1.331 GB, free: 11.94 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.319, allocations: 11.98 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.031e-05/0.3191, allocations: 87.28 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3191, allocations: 0 / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001943/0.3192, allocations: 28.05 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006659/0.3199, allocations: 0.7529 MB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002085/0.3201, allocations: 87.95 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.3201, allocations: 0 / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.3202, allocations: 43.92 kB / 1.332 GB, free: 10.9 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000187/0.3204, allocations: 19.97 kB / 1.332 GB, free: 10.88 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.322, allocations: 1.51 MB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.214e-05/0.3221, allocations: 79.33 kB / 1.334 GB, free: 9.191 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.01e-05/0.3221, allocations: 4.672 kB / 1.334 GB, free: 9.188 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.125e-05/0.3222, allocations: 27.42 kB / 1.334 GB, free: 9.16 MB / 1.029 GB Notification: Performance of SimCode: time 3.01e-07/0.3222, allocations: 0 / 1.334 GB, free: 9.16 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02971/0.3519, allocations: 2.903 MB / 1.336 GB, free: 6.402 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.76, allocations: 7.766 kB / 1.336 GB, free: 6.398 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.fmu > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.84262136500911]