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.001233/0.001233, allocations: 98.77 kB / 15.05 MB, free: 1.105 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.001716/0.001716, allocations: 177.3 kB / 15.94 MB, free: 228 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.41/1.41, allocations: 223.2 MB / 239.9 MB, free: 5.34 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.389/2.389, allocations: 390.3 MB / 0.6653 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003356/0.0003356, allocations: 15.98 kB / 0.8146 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7989/0.7993, allocations: 142.3 MB / 0.9536 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.0008863/0.8002, allocations: 0.5261 MB / 0.9541 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009845/0.8012, allocations: 0.9996 MB / 0.9551 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.35e-05/0.8013, allocations: 1.156 kB / 0.9551 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.952e-05/0.8014, allocations: 11.92 kB / 0.9551 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.306e-05/0.8014, allocations: 19.56 kB / 0.9551 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002637/0.8017, allocations: 69.08 kB / 0.9552 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.122e-05/0.8018, allocations: 65.97 kB / 0.9553 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.8019, allocations: 38.59 kB / 0.9553 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.221e-05/0.802, allocations: 37.44 kB / 0.9553 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.695e-05/0.8021, allocations: 46.56 kB / 0.9554 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.8021, allocations: 3.438 kB / 0.9554 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.166e-05/0.8022, allocations: 46.84 kB / 0.9554 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.836e-05/0.8022, allocations: 32.66 kB / 0.9555 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.352e-05/0.8023, allocations: 39.05 kB / 0.9555 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.8024, allocations: 126.9 kB / 0.9556 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.8024, allocations: 0 / 0.9556 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.224e-06/0.8024, allocations: 0 / 0.9556 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.817e-06/0.8024, allocations: 4 kB / 0.9556 GB, free: 6.504 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.0007091/0.8031, allocations: 493.5 kB / 0.9561 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.8032, allocations: 9.688 kB / 0.9561 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.991e-05/0.8032, allocations: 41.61 kB / 0.9561 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/0.8033, allocations: 18.36 kB / 0.9562 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.8034, allocations: 199.1 kB / 0.9563 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.8034, allocations: 6.406 kB / 0.9563 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.8035, allocations: 9.094 kB / 0.9564 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005258/0.804, allocations: 205.8 kB / 0.9566 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.804, allocations: 3.938 kB / 0.9566 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.804, allocations: 5.375 kB / 0.9566 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-05/0.8041, allocations: 13.58 kB / 0.9566 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007339/0.8048, allocations: 262.6 kB / 0.9568 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008274/0.8057, allocations: 489.4 kB / 0.9573 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004164/0.8061, allocations: 167.8 kB / 0.9575 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.8061, allocations: 0 / 0.9575 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.436e-05/0.8061, allocations: 32.38 kB / 0.9575 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.092e-06/0.8061, allocations: 0 / 0.9575 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.001347/0.8075, allocations: 0.6339 MB / 0.9581 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.8075, allocations: 57.31 kB / 0.9582 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.8076, allocations: 144.1 kB / 0.9583 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.8077, allocations: 33.64 kB / 0.9583 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.787e-05/0.8077, allocations: 110.2 kB / 0.9584 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.8078, allocations: 44.73 kB / 0.9585 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-06/0.8078, allocations: 9.656 kB / 0.9585 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.726e-05/0.8078, allocations: 321.8 kB / 0.9588 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.8082, allocations: 139.4 kB / 0.9589 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003703/0.8086, allocations: 139.8 kB / 0.9591 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003623/0.809, allocations: 148.7 kB / 0.9592 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.809, allocations: 1.375 kB / 0.9592 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008031/0.8098, allocations: 335 kB / 0.9595 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.8098, allocations: 5.375 kB / 0.9595 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.8098, allocations: 0 / 0.9595 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.8098, allocations: 1 kB / 0.9595 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002571/0.8101, allocations: 50.39 kB / 0.9596 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.8101, allocations: 0 / 0.9596 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001941/0.8103, allocations: 53.58 kB / 0.9596 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/0.8103, allocations: 6.688 kB / 0.9596 GB, free: 3.578 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 8.891e-05/0.8104, allocations: 122.5 kB / 0.9597 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.377e-05/0.8105, allocations: 12.95 kB / 0.9598 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.8105, allocations: 10.91 kB / 0.9598 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.552e-05/0.8106, allocations: 15.73 kB / 0.9598 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.8106, allocations: 4 kB / 0.9598 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.8106, allocations: 1.125 kB / 0.9598 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002486/0.8108, allocations: 233.7 kB / 0.96 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.8108, allocations: 0 / 0.96 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002035/0.811, allocations: 50.64 kB / 0.9601 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.8111, allocations: 3.953 kB / 0.9601 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.8111, allocations: 5.031 kB / 0.9601 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.8111, allocations: 1.25 kB / 0.9601 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.8111, allocations: 0 / 0.9601 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009683/0.8121, allocations: 429.5 kB / 0.9605 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.344e-05/0.8121, allocations: 92.28 kB / 0.9606 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.8122, allocations: 8.984 kB / 0.9606 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000285/0.8124, allocations: 40.98 kB / 0.9606 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.768e-05/0.8125, allocations: 24.38 kB / 0.9606 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.8126, allocations: 2.031 kB / 0.9606 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.409e-05/0.8126, allocations: 107.5 kB / 0.9607 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8126, allocations: 0 / 0.9607 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004374/0.8131, allocations: 37.12 kB / 0.9608 GB, free: 2.68 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.001513/0.8146, allocations: 0.9941 MB / 0.9617 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00109/0.8157, allocations: 307.4 kB / 0.962 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.8157, allocations: 4 kB / 0.962 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003948/0.8161, allocations: 161 kB / 0.9622 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.8164, allocations: 30.16 kB / 0.9622 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.8185, allocations: 1.191 MB / 0.9634 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.8187, allocations: 0.7246 MB / 0.9641 GB, free: 244 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.311e-05/0.8188, allocations: 21.09 kB / 0.9641 GB, free: 232 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.316e-05/0.8189, allocations: 36.11 kB / 0.9642 GB, free: 200 kB / 0.7169 GB Notification: Performance of SimCode: time 2.71e-07/0.8189, allocations: 0 / 0.9642 GB, free: 200 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01489/0.8338, allocations: 2.953 MB / 0.967 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/0.834, allocations: 184.5 kB / 0.9672 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/2.546, allocations: 3.938 kB / 0.9672 GB, free: 14.57 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