Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.908/1.908, allocations: 306.1 MB / 321.4 MB, free: 10.73 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 171.8 kB / 393.1 MB, free: 4.074 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 225.7 MB / 0.6743 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007437/0.0007439, allocations: 103.8 kB / 0.7935 GB, free: 40.08 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.000326/0.000326, allocations: 12 kB / 0.9224 GB, free: 8.652 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.602/0.6023, allocations: 121.3 MB / 1.041 GB, free: 58.71 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge): time 0.001769/0.6041, allocations: 1.281 MB / 1.042 GB, free: 57.85 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0006141/0.6048, allocations: 423.6 kB / 1.043 GB, free: 57.56 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.906e-05/0.6048, allocations: 0 / 1.043 GB, free: 57.56 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 1.641e-05/0.6048, allocations: 0 / 1.043 GB, free: 57.56 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 7.491e-05/0.6049, allocations: 11.19 kB / 1.043 GB, free: 57.55 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.6051, allocations: 31 kB / 1.043 GB, free: 57.53 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 9.003e-05/0.6052, allocations: 64.92 kB / 1.043 GB, free: 57.51 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.6053, allocations: 9.344 kB / 1.043 GB, free: 57.5 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 9.666e-05/0.6054, allocations: 29.36 kB / 1.043 GB, free: 57.49 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 9.707e-05/0.6055, allocations: 33.66 kB / 1.043 GB, free: 57.48 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.6056, allocations: 2.812 kB / 1.043 GB, free: 57.48 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 1.503e-05/0.6056, allocations: 2.469 kB / 1.043 GB, free: 57.48 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.638e-05/0.6056, allocations: 11.42 kB / 1.043 GB, free: 57.47 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.803e-05/0.6057, allocations: 53.12 kB / 1.043 GB, free: 57.43 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.6058, allocations: 62.55 kB / 1.043 GB, free: 57.41 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.6058, allocations: 0 / 1.043 GB, free: 57.41 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.535e-06/0.6058, allocations: 0 / 1.043 GB, free: 57.41 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.6058, allocations: 3.906 kB / 1.043 GB, free: 57.41 MB / 0.698 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.0004598/0.6063, allocations: 364.2 kB / 1.043 GB, free: 57.04 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.6063, allocations: 7.281 kB / 1.043 GB, free: 57.04 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.545e-05/0.6064, allocations: 7 kB / 1.043 GB, free: 57.04 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.039e-05/0.6065, allocations: 183.1 kB / 1.043 GB, free: 56.82 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.6065, allocations: 5.344 kB / 1.043 GB, free: 56.82 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.681e-05/0.6065, allocations: 6.656 kB / 1.043 GB, free: 56.82 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.6067, allocations: 90.59 kB / 1.043 GB, free: 56.77 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.6067, allocations: 3.312 kB / 1.043 GB, free: 56.77 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.6068, allocations: 3.938 kB / 1.043 GB, free: 56.77 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.6068, allocations: 0 / 1.043 GB, free: 56.77 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.6069, allocations: 47.12 kB / 1.044 GB, free: 56.76 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004677/0.6074, allocations: 320.8 kB / 1.044 GB, free: 56.46 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002447/0.6076, allocations: 103.5 kB / 1.044 GB, free: 56.41 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.888e-05/0.6077, allocations: 46.52 kB / 1.044 GB, free: 56.39 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.358e-05/0.6078, allocations: 0 / 1.044 GB, free: 56.39 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002524/0.608, allocations: 120.6 kB / 1.044 GB, free: 56.32 MB / 0.698 GB Notification: Performance of pre-optimization done (n=11): time 1.473e-06/0.608, allocations: 0 / 1.044 GB, free: 56.32 MB / 0.698 GB Notification: Performance of matching and sorting (n=11): time 0.0003725/0.6084, allocations: 176.7 kB / 1.044 GB, free: 56.25 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.6084, allocations: 55.97 kB / 1.044 GB, free: 56.18 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.887e-05/0.6085, allocations: 111.7 kB / 1.044 GB, free: 56.08 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.6085, allocations: 32.92 kB / 1.044 GB, free: 56.04 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 2.723e-05/0.6086, allocations: 92.75 kB / 1.045 GB, free: 55.95 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.6086, allocations: 36.14 kB / 1.045 GB, free: 55.92 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-06/0.6086, allocations: 0 / 1.045 GB, free: 55.92 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 5.04e-05/0.6087, allocations: 321.9 kB / 1.045 GB, free: 55.6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.414e-05/0.6087, allocations: 33.56 kB / 1.045 GB, free: 55.59 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.813e-05/0.6088, allocations: 49.47 kB / 1.045 GB, free: 55.57 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001239/0.609, allocations: 68.05 kB / 1.045 GB, free: 55.54 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.609, allocations: 1.281 kB / 1.045 GB, free: 55.54 MB / 0.698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001913/0.6092, allocations: 122 kB / 1.045 GB, free: 55.47 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.6092, allocations: 12.72 kB / 1.045 GB, free: 55.46 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.6092, allocations: 0 / 1.045 GB, free: 55.46 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.6092, allocations: 3.5 kB / 1.045 GB, free: 55.46 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.373e-05/0.6093, allocations: 11.91 kB / 1.045 GB, free: 55.46 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.6093, allocations: 2.156 kB / 1.045 GB, free: 55.46 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.699e-05/0.6094, allocations: 13.22 kB / 1.045 GB, free: 55.46 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.6094, allocations: 3.656 kB / 1.045 GB, free: 55.46 MB / 0.698 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.soc.charged,soc.charged,$PRE.soc.discharged,soc.discharged,soc.suspend) * 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 7.239e-05/0.6095, allocations: 122 kB / 1.045 GB, free: 55.33 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.511e-05/0.6095, allocations: 10.08 kB / 1.045 GB, free: 55.33 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.708e-05/0.6095, allocations: 12.14 kB / 1.045 GB, free: 55.32 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.6095, allocations: 6.734 kB / 1.045 GB, free: 55.32 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.6095, allocations: 0 / 1.045 GB, free: 55.32 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.6096, allocations: 4 kB / 1.045 GB, free: 55.32 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.6097, allocations: 201.2 kB / 1.046 GB, free: 55.11 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.6097, allocations: 0 / 1.046 GB, free: 55.11 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.488e-05/0.6098, allocations: 10.64 kB / 1.046 GB, free: 55.11 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.6098, allocations: 7.875 kB / 1.046 GB, free: 55.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.6098, allocations: 6.062 kB / 1.046 GB, free: 55.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.6098, allocations: 0 / 1.046 GB, free: 55.1 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.6098, allocations: 0 / 1.046 GB, free: 55.1 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003307/0.6101, allocations: 230.3 kB / 1.046 GB, free: 54.97 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.187e-05/0.6102, allocations: 83 kB / 1.046 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.424e-05/0.6102, allocations: 4.469 kB / 1.046 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.058e-05/0.6103, allocations: 12.34 kB / 1.046 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.567e-05/0.6103, allocations: 9.969 kB / 1.046 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.6104, allocations: 8.344 kB / 1.046 GB, free: 54.87 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.956e-05/0.6104, allocations: 94 kB / 1.046 GB, free: 54.78 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6104, allocations: 0 / 1.046 GB, free: 54.78 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000178/0.6106, allocations: 21.84 kB / 1.046 GB, free: 54.78 MB / 0.698 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.000112/0.6107, allocations: 113.9 kB / 1.046 GB, free: 54.68 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002132/0.6109, allocations: 89.58 kB / 1.046 GB, free: 54.66 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.6109, allocations: 7.938 kB / 1.046 GB, free: 54.65 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001125/0.611, allocations: 70.62 kB / 1.046 GB, free: 54.62 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001821/0.6112, allocations: 12.39 kB / 1.046 GB, free: 54.62 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004777/0.6117, allocations: 307.8 kB / 1.047 GB, free: 54.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001268/0.6119, allocations: 0.6911 MB / 1.047 GB, free: 53.71 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 5.081e-05/0.6119, allocations: 7.5 kB / 1.047 GB, free: 53.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.619e-05/0.612, allocations: 14.2 kB / 1.047 GB, free: 53.7 MB / 0.698 GB Notification: Performance of SimCode: time 2.91e-07/0.612, allocations: 0 / 1.047 GB, free: 53.7 MB / 0.698 GB Notification: Performance of Templates: time 0.002887/0.6149, allocations: 0.9274 MB / 1.048 GB, free: 53.61 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1)