Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Sort.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.000764/0.000764, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.00079/0.00079, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8666/0.8666, allocations: 177.1 MB / 202.8 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.707/0.707, allocations: 154.6 MB / 413.7 MB, free: 0.8359 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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(IDEAS.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.946e-06/2.946e-06, allocations: 4 kB / 0.6181 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.514e-05/1.808e-05, allocations: 5.781 kB / 0.6181 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001297/0.001316, allocations: 0.7967 MB / 0.6189 GB, free: 12.9 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.002334, allocations: 1.03 MB / 0.6199 GB, free: 11.86 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.135e-05/0.002395, allocations: 7.938 kB / 0.6199 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.002499, allocations: 15.86 kB / 0.6199 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 3.708e-05/0.002537, allocations: 23.8 kB / 0.6199 GB, free: 11.81 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.000385/0.002922, allocations: 95.75 kB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.003051, allocations: 123.6 kB / 0.6202 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.003187, allocations: 33.28 kB / 0.6202 GB, free: 11.56 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 8.187e-05/0.003269, allocations: 75.86 kB / 0.6203 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.336e-05/0.003322, allocations: 39.89 kB / 0.6203 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.003343, allocations: 8 kB / 0.6203 GB, free: 11.44 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.003456, allocations: 99.78 kB / 0.6204 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 4.728e-05/0.003503, allocations: 39.89 kB / 0.6204 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.474e-05/0.003538, allocations: 35.86 kB / 0.6205 GB, free: 11.27 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002084/0.003746, allocations: 227.2 kB / 0.6207 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.003748, allocations: 0 / 0.6207 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of FrontEnd: time 9.11e-07/0.003749, allocations: 0 / 0.6207 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.003753, allocations: 0 / 0.6207 GB, free: 11.04 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0005163/0.004269, allocations: 421.4 kB / 0.6211 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.004306, allocations: 9.469 kB / 0.6211 GB, free: 10.59 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.778e-05/0.004344, allocations: 54.67 kB / 0.6212 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.852e-05/0.004372, allocations: 16.8 kB / 0.6212 GB, free: 10.51 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.004512, allocations: 153 kB / 0.6213 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.004522, allocations: 12.31 kB / 0.6213 GB, free: 10.33 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.233e-05/0.004534, allocations: 8.312 kB / 0.6213 GB, free: 10.32 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003096/0.004844, allocations: 202.1 kB / 0.6215 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.004851, allocations: 192 / 0.6215 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.004862, allocations: 4.375 kB / 0.6215 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.00487, allocations: 8.125 kB / 0.6215 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003534/0.005223, allocations: 219.8 kB / 0.6217 GB, free: 9.891 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005412/0.005764, allocations: 483.4 kB / 0.6222 GB, free: 9.375 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.005982, allocations: 146.5 kB / 0.6223 GB, free: 9.223 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001978/0.006179, allocations: 144.7 kB / 0.6225 GB, free: 9.078 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 4.259e-05/0.006222, allocations: 8 kB / 0.6225 GB, free: 9.07 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.006241, allocations: 34.5 kB / 0.6225 GB, free: 9.027 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=25): time 1.062e-06/0.006242, allocations: 0 / 0.6225 GB, free: 9.027 MB / 0.5886 GB Notification: Performance of matching and sorting (n=25): time 0.0006883/0.006931, allocations: 484.2 kB / 0.623 GB, free: 8.551 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.006962, allocations: 51.41 kB / 0.623 GB, free: 8.488 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.419e-05/0.007046, allocations: 150.3 kB / 0.6232 GB, free: 8.332 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.007059, allocations: 29.7 kB / 0.6232 GB, free: 8.297 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.135e-05/0.00712, allocations: 104.6 kB / 0.6233 GB, free: 8.191 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 4.493e-05/0.007165, allocations: 67.33 kB / 0.6234 GB, free: 8.125 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.007206, allocations: 45.64 kB / 0.6234 GB, free: 8.074 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.868e-05/0.007285, allocations: 330.8 kB / 0.6237 GB, free: 7.742 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.007477, allocations: 131.9 kB / 0.6239 GB, free: 7.613 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001872/0.007664, allocations: 135.8 kB / 0.624 GB, free: 7.48 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003806/0.008045, allocations: 297.4 kB / 0.6243 GB, free: 7.188 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.008046, allocations: 4 kB / 0.6243 GB, free: 7.184 MB / 0.5886 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000413/0.00846, allocations: 327 kB / 0.6246 GB, free: 6.859 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.008471, allocations: 8 kB / 0.6246 GB, free: 6.852 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.008484, allocations: 0 / 0.6246 GB, free: 6.852 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.008495, allocations: 4 kB / 0.6246 GB, free: 6.848 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.008603, allocations: 31.95 kB / 0.6246 GB, free: 6.816 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.008608, allocations: 0 / 0.6246 GB, free: 6.816 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.153e-05/0.00869, allocations: 43.84 kB / 0.6247 GB, free: 6.773 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.008708, allocations: 0 / 0.6247 GB, free: 6.773 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorDes.yIdx[5],sorDes.yIdx[4],sorDes.yIdx[3],sorDes.yIdx[2],sorDes.yIdx[1],sorAsc.yIdx[5],sorAsc.yIdx[4],sorAsc.yIdx[3],sorAsc.yIdx[2],sorAsc.yIdx[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 9.11e-05/0.008799, allocations: 148.8 kB / 0.6248 GB, free: 6.621 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/0.008817, allocations: 15.91 kB / 0.6248 GB, free: 6.605 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005037/0.009321, allocations: 370.5 kB / 0.6252 GB, free: 6.234 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.009323, allocations: 0 / 0.6252 GB, free: 6.234 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.009327, allocations: 3.938 kB / 0.6252 GB, free: 6.23 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.00933, allocations: 4 kB / 0.6252 GB, free: 6.227 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001553/0.009485, allocations: 232.5 kB / 0.6254 GB, free: 5.957 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.009488, allocations: 0 / 0.6254 GB, free: 5.957 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.239e-05/0.00957, allocations: 39.95 kB / 0.6254 GB, free: 5.918 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.009572, allocations: 4 kB / 0.6255 GB, free: 5.914 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.00958, allocations: 0 / 0.6255 GB, free: 5.914 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.009581, allocations: 3.938 kB / 0.6255 GB, free: 5.91 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.009582, allocations: 0 / 0.6255 GB, free: 5.91 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004382/0.01002, allocations: 439.1 kB / 0.6259 GB, free: 5.465 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.274e-05/0.01003, allocations: 23.78 kB / 0.6259 GB, free: 5.441 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.01005, allocations: 4 kB / 0.6259 GB, free: 5.438 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.034e-05/0.01014, allocations: 27.95 kB / 0.6259 GB, free: 5.41 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.756e-05/0.01018, allocations: 15.97 kB / 0.6259 GB, free: 5.395 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.01019, allocations: 4 kB / 0.6259 GB, free: 5.391 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 4.373e-05/0.01024, allocations: 108.8 kB / 0.6261 GB, free: 5.285 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.01024, allocations: 8 kB / 0.6261 GB, free: 5.277 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000177/0.01041, allocations: 39.94 kB / 0.6261 GB, free: 5.238 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorAsc.yIdx[1],sorAsc.yIdx[2],sorAsc.yIdx[3],sorAsc.yIdx[4],sorAsc.yIdx[5],sorDes.yIdx[1],sorDes.yIdx[2],sorDes.yIdx[3],sorDes.yIdx[4],sorDes.yIdx[5]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * 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.0006591/0.01107, allocations: 0.9933 MB / 0.6271 GB, free: 4.219 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0004593/0.01153, allocations: 363.1 kB / 0.6274 GB, free: 3.852 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-06/0.01153, allocations: 0 / 0.6274 GB, free: 3.852 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0002187/0.01175, allocations: 219.2 kB / 0.6276 GB, free: 3.625 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.012, allocations: 28.61 kB / 0.6276 GB, free: 3.598 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002001/0.014, allocations: 2.361 MB / 0.63 GB, free: 1.156 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.191e-05/0.01407, allocations: 122.9 kB / 0.6301 GB, free: 1.02 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 4.499e-05/0.01412, allocations: 19.97 kB / 0.6301 GB, free: 1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.56e-05/0.01417, allocations: 44.48 kB / 0.6301 GB, free: 0.957 MB / 0.5886 GB Notification: Performance of SimCode: time 4.31e-07/0.01417, allocations: 0 / 0.6301 GB, free: 0.957 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01476/0.02893, allocations: 4.715 MB / 0.6347 GB, free: 12.41 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.018/7.046, allocations: 27.53 kB / 0.6348 GB, free: 12.39 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Sort.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Sort_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Sort.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.692363108508289] Failed to read output from testmodel.py, exit status != 0: 7.128611541353166 7.137790795 7.132241803 Calling exit ...