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.0006561/0.0006561, allocations: 80.45 kB / 19.15 MB, free: 0.7734 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.0007482/0.0007482, allocations: 162 kB / 22.43 MB, free: 2.145 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.8998/0.8998, allocations: 177.2 MB / 202.8 MB, free: 5.773 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.7021/0.7021, allocations: 155 MB / 414.2 MB, free: 496 kB / 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: 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.0008723/0.0008723, allocations: 72.92 kB / 0.6187 GB, free: 13.17 MB / 0.5886 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.4638/0.4646, allocations: 102 MB / 0.7183 GB, free: 23.09 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001532/0.4662, allocations: 0.7952 MB / 0.7191 GB, free: 22.58 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.0008421/0.467, allocations: 1.034 MB / 0.7201 GB, free: 21.83 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.564e-05/0.4671, allocations: 1.125 kB / 0.7201 GB, free: 21.83 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.4672, allocations: 11.95 kB / 0.7201 GB, free: 21.82 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 4.185e-05/0.4672, allocations: 28.97 kB / 0.7201 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.000397/0.4676, allocations: 91.02 kB / 0.7202 GB, free: 21.76 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.4678, allocations: 122.6 kB / 0.7204 GB, free: 21.71 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.4679, allocations: 34.05 kB / 0.7204 GB, free: 21.7 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.468, allocations: 78.67 kB / 0.7205 GB, free: 21.66 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 6.619e-05/0.4681, allocations: 54 kB / 0.7205 GB, free: 21.63 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 2.225e-05/0.4681, allocations: 10.59 kB / 0.7205 GB, free: 21.63 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.4682, allocations: 85.78 kB / 0.7206 GB, free: 21.61 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 5.678e-05/0.4683, allocations: 44.84 kB / 0.7206 GB, free: 21.59 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 4.651e-05/0.4683, allocations: 48.12 kB / 0.7207 GB, free: 21.56 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0002949/0.4686, allocations: 247.7 kB / 0.7209 GB, free: 21.46 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 6.423e-06/0.4686, allocations: 0 / 0.7209 GB, free: 21.46 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.034e-06/0.4686, allocations: 5.094 kB / 0.7209 GB, free: 21.46 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.4686, allocations: 0.5625 kB / 0.7209 GB, free: 21.46 MB / 0.6355 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.0005607/0.4692, allocations: 423.4 kB / 0.7213 GB, free: 21.12 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.4692, allocations: 11.06 kB / 0.7213 GB, free: 21.12 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.323e-05/0.4693, allocations: 47.19 kB / 0.7214 GB, free: 21.07 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.422e-05/0.4693, allocations: 23.58 kB / 0.7214 GB, free: 21.05 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.4694, allocations: 148.5 kB / 0.7216 GB, free: 20.91 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.4694, allocations: 7.562 kB / 0.7216 GB, free: 20.9 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.4695, allocations: 5.906 kB / 0.7216 GB, free: 20.9 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004162/0.4699, allocations: 199.8 kB / 0.7218 GB, free: 20.84 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.4699, allocations: 3.938 kB / 0.7218 GB, free: 20.83 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.4699, allocations: 9.672 kB / 0.7218 GB, free: 20.82 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.4699, allocations: 6.5 kB / 0.7218 GB, free: 20.82 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.4703, allocations: 218.2 kB / 0.722 GB, free: 20.79 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000575/0.4709, allocations: 498.4 kB / 0.7225 GB, free: 20.45 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.4711, allocations: 162.5 kB / 0.7226 GB, free: 20.39 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/0.4713, allocations: 139.2 kB / 0.7228 GB, free: 20.36 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.867e-05/0.4714, allocations: 9.484 kB / 0.7228 GB, free: 20.35 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.533e-05/0.4714, allocations: 32.16 kB / 0.7228 GB, free: 20.31 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=25): time 1.823e-06/0.4714, allocations: 1.094 kB / 0.7228 GB, free: 20.31 MB / 0.6355 GB Notification: Performance of matching and sorting (n=25): time 0.0008224/0.4722, allocations: 481.8 kB / 0.7233 GB, free: 20.18 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.361e-05/0.4723, allocations: 57.03 kB / 0.7233 GB, free: 20.12 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.912e-05/0.4723, allocations: 155.7 kB / 0.7235 GB, free: 20 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.4724, allocations: 26.92 kB / 0.7235 GB, free: 19.97 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.523e-05/0.4724, allocations: 106 kB / 0.7236 GB, free: 19.87 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.285e-05/0.4724, allocations: 73.25 kB / 0.7237 GB, free: 19.81 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-05/0.4725, allocations: 37 kB / 0.7237 GB, free: 19.79 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 4.553e-05/0.4725, allocations: 329.2 kB / 0.724 GB, free: 19.46 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/0.4727, allocations: 137.7 kB / 0.7241 GB, free: 19.43 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002036/0.473, allocations: 130.9 kB / 0.7243 GB, free: 19.41 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000431/0.4734, allocations: 297 kB / 0.7245 GB, free: 19.34 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4734, allocations: 0 / 0.7245 GB, free: 19.34 MB / 0.6355 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004765/0.4739, allocations: 339.3 kB / 0.7249 GB, free: 19.23 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.4739, allocations: 5.375 kB / 0.7249 GB, free: 19.23 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.4739, allocations: 1 kB / 0.7249 GB, free: 19.23 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.4739, allocations: 1.062 kB / 0.7249 GB, free: 19.23 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.474, allocations: 44.78 kB / 0.7249 GB, free: 19.22 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.474, allocations: 1 kB / 0.7249 GB, free: 19.22 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.868e-05/0.4741, allocations: 41.08 kB / 0.725 GB, free: 19.21 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.4742, allocations: 3.016 kB / 0.725 GB, free: 19.21 MB / 0.6355 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.911e-05/0.4743, allocations: 141.7 kB / 0.7251 GB, free: 19.09 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.103e-05/0.4743, allocations: 14.12 kB / 0.7251 GB, free: 19.08 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005865/0.4749, allocations: 359 kB / 0.7254 GB, free: 18.97 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.4749, allocations: 5.859 kB / 0.7255 GB, free: 18.96 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.4749, allocations: 0 / 0.7255 GB, free: 18.96 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.4749, allocations: 1.875 kB / 0.7255 GB, free: 18.96 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.475, allocations: 222.4 kB / 0.7257 GB, free: 18.77 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.475, allocations: 5.859 kB / 0.7257 GB, free: 18.77 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.4752, allocations: 34.84 kB / 0.7257 GB, free: 18.77 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.4752, allocations: 0.9688 kB / 0.7257 GB, free: 18.77 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.4752, allocations: 0.9688 kB / 0.7257 GB, free: 18.77 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.4752, allocations: 12.58 kB / 0.7257 GB, free: 18.76 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.4752, allocations: 1.062 kB / 0.7257 GB, free: 18.76 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000515/0.4757, allocations: 432.7 kB / 0.7261 GB, free: 18.55 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 1.549e-05/0.4757, allocations: 17.38 kB / 0.7261 GB, free: 18.54 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.4757, allocations: 4.656 kB / 0.7262 GB, free: 18.54 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.4758, allocations: 31.66 kB / 0.7262 GB, free: 18.54 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.103e-05/0.4759, allocations: 21.52 kB / 0.7262 GB, free: 18.52 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.4759, allocations: 3.625 kB / 0.7262 GB, free: 18.52 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.572e-05/0.4759, allocations: 111.8 kB / 0.7263 GB, free: 18.44 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.4759, allocations: 0 / 0.7263 GB, free: 18.44 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002091/0.4762, allocations: 48.14 kB / 0.7264 GB, free: 18.43 MB / 0.6355 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.0006966/0.4769, allocations: 0.9984 MB / 0.7273 GB, free: 17.68 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0005562/0.4774, allocations: 370.9 kB / 0.7277 GB, free: 17.55 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4774, allocations: 0 / 0.7277 GB, free: 17.55 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002734/0.4777, allocations: 218.8 kB / 0.7279 GB, free: 17.46 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.4779, allocations: 21.52 kB / 0.7279 GB, free: 17.45 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/0.4801, allocations: 2.343 MB / 0.7302 GB, free: 15.95 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.699e-05/0.4802, allocations: 119.5 kB / 0.7303 GB, free: 15.86 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.27e-05/0.4802, allocations: 18.31 kB / 0.7303 GB, free: 15.86 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.604e-05/0.4803, allocations: 43.88 kB / 0.7304 GB, free: 15.82 MB / 0.6355 GB Notification: Performance of SimCode: time 7.32e-07/0.4803, allocations: 4 kB / 0.7304 GB, free: 15.82 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.4973, allocations: 4.702 MB / 0.735 GB, free: 14.73 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.602/7.099, allocations: 10.62 kB / 0.735 GB, free: 14.72 MB / 0.6355 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_OBC_CDL_Reals_Validation_Sort_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.774280399782583] Failed to read output from testmodel.py, exit status != 0: 7.17804585583508 7.186988836 6.716597353 Calling exit ...