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.0008834/0.0008834, allocations: 101.5 kB / 18.95 MB, free: 1.184 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.001022/0.001022, allocations: 209.7 kB / 22.24 MB, free: 3.57 MB / 13.93 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.9378/0.9378, allocations: 230.6 MB / 256 MB, free: 9.582 MB / 202.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.7761/0.7761, allocations: 203.8 MB / 0.5042 GB, free: 10.46 MB / 410.7 MB " [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: IDEAS 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.00118/0.00118, allocations: 67.11 kB / 0.7182 GB, free: 3.996 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4994/0.5006, allocations: 102 MB / 0.8178 GB, free: 1.055 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001479/0.5021, allocations: 0.8135 MB / 0.8186 GB, free: 0.5312 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009971/0.503, allocations: 1.027 MB / 0.8196 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.731e-05/0.5031, allocations: 1.094 kB / 0.8196 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.5032, allocations: 15.62 kB / 0.8196 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.718e-05/0.5033, allocations: 25.36 kB / 0.8197 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004152/0.5037, allocations: 94.88 kB / 0.8198 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001392/0.5038, allocations: 127.1 kB / 0.8199 GB, free: 15.65 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.504, allocations: 41.59 kB / 0.8199 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.293e-05/0.504, allocations: 48.81 kB / 0.82 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.476e-05/0.5041, allocations: 53.8 kB / 0.82 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.5041, allocations: 10 kB / 0.82 GB, free: 15.59 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.5043, allocations: 86.59 kB / 0.8201 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.762e-05/0.5043, allocations: 45.27 kB / 0.8202 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.013e-05/0.5044, allocations: 46.66 kB / 0.8202 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002805/0.5047, allocations: 224.6 kB / 0.8204 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.5047, allocations: 0 / 0.8204 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.402e-06/0.5047, allocations: 0 / 0.8204 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.214e-06/0.5047, allocations: 0 / 0.8204 GB, free: 15.43 MB / 0.6198 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.0005863/0.5053, allocations: 420 kB / 0.8208 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.5053, allocations: 7.969 kB / 0.8208 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.529e-05/0.5053, allocations: 48.97 kB / 0.8209 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.395e-05/0.5054, allocations: 21.64 kB / 0.8209 GB, free: 15.03 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.5055, allocations: 159.1 kB / 0.821 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.5055, allocations: 2.969 kB / 0.821 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.34e-05/0.5056, allocations: 9.781 kB / 0.8211 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003692/0.5059, allocations: 204.3 kB / 0.8212 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.5059, allocations: 4.5 kB / 0.8213 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.506, allocations: 4 kB / 0.8213 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.506, allocations: 2.312 kB / 0.8213 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003926/0.5063, allocations: 218.5 kB / 0.8215 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006229/0.507, allocations: 485.4 kB / 0.8219 GB, free: 14.43 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.5072, allocations: 160.1 kB / 0.8221 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.5074, allocations: 133.5 kB / 0.8222 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.889e-05/0.5075, allocations: 9.438 kB / 0.8222 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.5075, allocations: 35.56 kB / 0.8223 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=25): time 1.302e-06/0.5075, allocations: 1.125 kB / 0.8223 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of matching and sorting (n=25): time 0.0009338/0.5084, allocations: 485.5 kB / 0.8227 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.091e-05/0.5085, allocations: 61.12 kB / 0.8228 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.5086, allocations: 158.2 kB / 0.8229 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.5086, allocations: 30.8 kB / 0.823 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.401e-05/0.5086, allocations: 110.1 kB / 0.8231 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.183e-05/0.5087, allocations: 69.81 kB / 0.8231 GB, free: 13.77 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.764e-05/0.5087, allocations: 34.03 kB / 0.8232 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.16e-05/0.5088, allocations: 324.5 kB / 0.8235 GB, free: 13.43 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002325/0.5091, allocations: 133.3 kB / 0.8236 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/0.5093, allocations: 134.6 kB / 0.8237 GB, free: 13.38 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004703/0.5098, allocations: 297.8 kB / 0.824 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5098, allocations: 1.156 kB / 0.824 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005102/0.5103, allocations: 330.3 kB / 0.8243 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.5103, allocations: 7.172 kB / 0.8243 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.5103, allocations: 1.25 kB / 0.8243 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.5103, allocations: 0.5625 kB / 0.8243 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.5105, allocations: 50.47 kB / 0.8244 GB, free: 13.19 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.5105, allocations: 0 / 0.8244 GB, free: 13.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.176e-05/0.5106, allocations: 37.59 kB / 0.8244 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.5106, allocations: 6.719 kB / 0.8244 GB, free: 13.18 MB / 0.6198 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 0.0001102/0.5107, allocations: 136 kB / 0.8246 GB, free: 13.06 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.305e-05/0.5107, allocations: 17.84 kB / 0.8246 GB, free: 13.05 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005431/0.5113, allocations: 363.6 kB / 0.8249 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.5113, allocations: 13.73 kB / 0.8249 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.5113, allocations: 0 / 0.8249 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.5113, allocations: 0.6094 kB / 0.8249 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002031/0.5115, allocations: 223.8 kB / 0.8251 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.5115, allocations: 1.922 kB / 0.8251 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.5116, allocations: 33.38 kB / 0.8252 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.5116, allocations: 1.469 kB / 0.8252 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.5116, allocations: 6.375 kB / 0.8252 GB, free: 12.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.5116, allocations: 3.938 kB / 0.8252 GB, free: 12.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5116, allocations: 4.562 kB / 0.8252 GB, free: 12.72 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005732/0.5122, allocations: 428.8 kB / 0.8256 GB, free: 12.52 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.598e-05/0.5122, allocations: 16.94 kB / 0.8256 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.5122, allocations: 1.969 kB / 0.8256 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.5123, allocations: 35.94 kB / 0.8257 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.03e-05/0.5124, allocations: 17.34 kB / 0.8257 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.5124, allocations: 2.844 kB / 0.8257 GB, free: 12.49 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.984e-05/0.5124, allocations: 114.7 kB / 0.8258 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5124, allocations: 0 / 0.8258 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002401/0.5127, allocations: 42.36 kB / 0.8258 GB, free: 12.4 MB / 0.6198 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.0008765/0.5136, allocations: 0.9964 MB / 0.8268 GB, free: 11.65 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006088/0.5142, allocations: 371.3 kB / 0.8272 GB, free: 11.52 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5142, allocations: 4 kB / 0.8272 GB, free: 11.52 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002671/0.5144, allocations: 214.4 kB / 0.8274 GB, free: 11.43 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.5147, allocations: 28.22 kB / 0.8274 GB, free: 11.42 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002573/0.5173, allocations: 2.345 MB / 0.8297 GB, free: 9.906 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.5174, allocations: 120.6 kB / 0.8298 GB, free: 9.824 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.78e-05/0.5175, allocations: 17.69 kB / 0.8298 GB, free: 9.82 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.62e-05/0.5175, allocations: 47.58 kB / 0.8299 GB, free: 9.781 MB / 0.6198 GB Notification: Performance of SimCode: time 1.032e-06/0.5175, allocations: 0.5312 kB / 0.8299 GB, free: 9.781 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02121/0.5387, allocations: 4.594 MB / 0.8343 GB, free: 8.594 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.82/7.358, allocations: 14.41 kB / 0.8344 GB, free: 8.586 MB / 0.6198 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: 10.322794897016138] Failed to read output from testmodel.py, exit status != 0: 7.43934011599049 7.45421841 6.946470699 Calling exit ...