Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 92.31 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001192, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 223.3 MB / 240 MB, free: 5.219 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.361/2.361, allocations: 390.4 MB / 0.6655 GB, free: 2.824 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003747/0.0003748, allocations: 15.98 kB / 0.8149 GB, free: 14.05 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7475/0.7479, allocations: 142.3 MB / 0.9539 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.000966/0.7489, allocations: 0.5224 MB / 0.9544 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001135/0.75, allocations: 0.9977 MB / 0.9554 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.263e-05/0.7501, allocations: 1.156 kB / 0.9554 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.064e-05/0.7502, allocations: 7.875 kB / 0.9554 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.464e-05/0.7503, allocations: 18.47 kB / 0.9554 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003195/0.7506, allocations: 62.56 kB / 0.9554 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001324/0.7507, allocations: 111.7 kB / 0.9556 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.7509, allocations: 38.78 kB / 0.9556 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.702e-05/0.751, allocations: 38.69 kB / 0.9556 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.643e-05/0.751, allocations: 42.17 kB / 0.9557 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.873e-05/0.7511, allocations: 4.219 kB / 0.9557 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.7512, allocations: 53.11 kB / 0.9557 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.232e-05/0.7512, allocations: 23.45 kB / 0.9557 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.194e-05/0.7513, allocations: 42.67 kB / 0.9558 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001602/0.7514, allocations: 135.3 kB / 0.9559 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.7514, allocations: 0 / 0.9559 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.743e-06/0.7514, allocations: 3.938 kB / 0.9559 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.7515, allocations: 1.531 kB / 0.9559 GB, free: 6.445 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006935/0.7522, allocations: 496.7 kB / 0.9564 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.7522, allocations: 9.375 kB / 0.9564 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.824e-05/0.7522, allocations: 45.47 kB / 0.9564 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.561e-05/0.7523, allocations: 22.67 kB / 0.9565 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.7524, allocations: 190.7 kB / 0.9566 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.7525, allocations: 6.781 kB / 0.9567 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.7525, allocations: 5.531 kB / 0.9567 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005085/0.753, allocations: 220.6 kB / 0.9569 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.753, allocations: 0 / 0.9569 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.753, allocations: 4 kB / 0.9569 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.207e-05/0.7531, allocations: 10.44 kB / 0.9569 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006687/0.7537, allocations: 259.6 kB / 0.9571 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008126/0.7546, allocations: 486.1 kB / 0.9576 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.755, allocations: 166.8 kB / 0.9578 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003544/0.7553, allocations: 153.8 kB / 0.9579 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.7554, allocations: 0 / 0.9579 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.7554, allocations: 40.27 kB / 0.9579 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.7554, allocations: 0 / 0.9579 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.001131/0.7565, allocations: 483.2 kB / 0.9584 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/0.7566, allocations: 52.78 kB / 0.9585 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.7567, allocations: 145.4 kB / 0.9586 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.7567, allocations: 25.7 kB / 0.9586 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.852e-05/0.7568, allocations: 113.8 kB / 0.9587 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.947e-05/0.7568, allocations: 48.77 kB / 0.9588 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-06/0.7568, allocations: 1.375 kB / 0.9588 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.969e-05/0.7569, allocations: 325.5 kB / 0.9591 GB, free: 4 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003349/0.7572, allocations: 139.9 kB / 0.9592 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003341/0.7576, allocations: 138.4 kB / 0.9593 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003541/0.7579, allocations: 150.6 kB / 0.9595 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.7579, allocations: 3.953 kB / 0.9595 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007896/0.7587, allocations: 341.8 kB / 0.9598 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.7588, allocations: 4.406 kB / 0.9598 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.7588, allocations: 7.984 kB / 0.9598 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.7588, allocations: 0.9688 kB / 0.9598 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002353/0.759, allocations: 46.77 kB / 0.9599 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.7591, allocations: 0 / 0.9599 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001911/0.7593, allocations: 53.17 kB / 0.9599 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/0.7593, allocations: 6.719 kB / 0.9599 GB, free: 3.641 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.23e-05/0.7594, allocations: 129.1 kB / 0.9601 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.7594, allocations: 12.33 kB / 0.9601 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.611e-05/0.7595, allocations: 16.09 kB / 0.9601 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.263e-05/0.7595, allocations: 14.52 kB / 0.9601 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.7595, allocations: 0.875 kB / 0.9601 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.7595, allocations: 0 / 0.9601 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002326/0.7597, allocations: 222.5 kB / 0.9603 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.7598, allocations: 3.938 kB / 0.9603 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.76, allocations: 58.25 kB / 0.9604 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.76, allocations: 1 kB / 0.9604 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.76, allocations: 4.984 kB / 0.9604 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.76, allocations: 0 / 0.9604 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.76, allocations: 1.031 kB / 0.9604 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007802/0.7608, allocations: 428.2 kB / 0.9608 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.674e-05/0.7608, allocations: 88.33 kB / 0.9609 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.265e-05/0.7609, allocations: 4.797 kB / 0.9609 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.7611, allocations: 52.08 kB / 0.9609 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.99e-05/0.7611, allocations: 8.859 kB / 0.9609 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.7611, allocations: 2.812 kB / 0.9609 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.637e-05/0.7612, allocations: 113.3 kB / 0.961 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.022e-06/0.7612, allocations: 0 / 0.961 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000316/0.7615, allocations: 45.47 kB / 0.9611 GB, free: 2.738 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001053/0.7626, allocations: 0.9879 MB / 0.9621 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0007893/0.7634, allocations: 311.5 kB / 0.9623 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7634, allocations: 0 / 0.9623 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003485/0.7638, allocations: 156.1 kB / 0.9625 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003667/0.7641, allocations: 21.03 kB / 0.9625 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002276/0.7664, allocations: 1.205 MB / 0.9637 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002028/0.7666, allocations: 0.7139 MB / 0.9644 GB, free: 320 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.368e-05/0.7667, allocations: 21.09 kB / 0.9644 GB, free: 308 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.964e-05/0.7668, allocations: 39.42 kB / 0.9644 GB, free: 272 kB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7668, allocations: 0 / 0.9644 GB, free: 272 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01643/0.7833, allocations: 2.978 MB / 0.9674 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00017/0.7835, allocations: 190.3 kB / 0.9675 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/2.554, allocations: 0 / 0.9675 GB, free: 14.63 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sort_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Sort.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_res.mat does not exist to compare? outputFormat=mat