Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.Integers.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change",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.001271/0.001271, allocations: 99.7 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.001457/0.001457, allocations: 177.3 kB / 15.95 MB, free: 216 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.539/1.539, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 3.426/3.426, allocations: 409.2 MB / 0.6838 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004214/0.0004217, allocations: 12 kB / 0.8375 GB, free: 6.535 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8754/0.8758, allocations: 146.8 MB / 0.9809 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Change): time 0.003104/0.879, allocations: 1.578 MB / 0.9824 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001951/0.881, allocations: 1.038 MB / 0.9834 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.8811, allocations: 3.938 kB / 0.9834 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0004585/0.8816, allocations: 87.67 kB / 0.9835 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002666/0.8819, allocations: 75.77 kB / 0.9836 GB, free: 3.484 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005397/0.8825, allocations: 130.4 kB / 0.9837 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003004/0.8828, allocations: 123.7 kB / 0.9838 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.883, allocations: 49.8 kB / 0.9839 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002061/0.8832, allocations: 79.69 kB / 0.984 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.8834, allocations: 79.67 kB / 0.984 GB, free: 3.035 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.8834, allocations: 4 kB / 0.984 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003703/0.8838, allocations: 39.91 kB / 0.9841 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.964e-05/0.8839, allocations: 47.88 kB / 0.9841 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.319e-05/0.884, allocations: 61.58 kB / 0.9842 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003601/0.8843, allocations: 205.7 kB / 0.9844 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.8843, allocations: 0 / 0.9844 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.794e-06/0.8843, allocations: 0 / 0.9844 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.277e-06/0.8844, allocations: 0 / 0.9844 GB, free: 2.68 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001089/0.8854, allocations: 0.5101 MB / 0.9849 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.8855, allocations: 8.031 kB / 0.9849 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.97e-05/0.8856, allocations: 42.56 kB / 0.9849 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.198e-05/0.8857, allocations: 23.72 kB / 0.9849 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005744/0.8863, allocations: 274.7 kB / 0.9852 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.8863, allocations: 12.12 kB / 0.9852 GB, free: 1.719 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.901e-05/0.8863, allocations: 12 kB / 0.9852 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004674/0.8868, allocations: 123.1 kB / 0.9853 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.8868, allocations: 4 kB / 0.9854 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.8869, allocations: 3.984 kB / 0.9854 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.8869, allocations: 4 kB / 0.9854 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003071/0.8872, allocations: 100 kB / 0.9855 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.8882, allocations: 456.3 kB / 0.9859 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005258/0.8888, allocations: 138.5 kB / 0.986 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.8888, allocations: 11.94 kB / 0.986 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000427/0.8892, allocations: 128.8 kB / 0.9862 GB, free: 0.6836 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 2.335e-06/0.8893, allocations: 4 kB / 0.9862 GB, free: 0.6797 MB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.0009395/0.8902, allocations: 250.1 kB / 0.9864 GB, free: 440 kB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/0.8903, allocations: 59.41 kB / 0.9865 GB, free: 368 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000581/0.8909, allocations: 334.4 kB / 0.9868 GB, free: 28 kB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.408e-05/0.891, allocations: 33.64 kB / 0.9868 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.8911, allocations: 132.5 kB / 0.9869 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 8.076e-05/0.8912, allocations: 47.44 kB / 0.987 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.112e-05/0.8913, allocations: 4 kB / 0.987 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002409/0.8915, allocations: 338.8 kB / 0.9873 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003614/0.8919, allocations: 91.95 kB / 0.9874 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004782/0.8924, allocations: 129.1 kB / 0.9875 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003791/0.8928, allocations: 93.31 kB / 0.9876 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.8928, allocations: 0 / 0.9876 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007351/0.8936, allocations: 292.2 kB / 0.9879 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.339e-05/0.8937, allocations: 9.719 kB / 0.9879 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.8937, allocations: 0 / 0.9879 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.621e-05/0.8937, allocations: 4 kB / 0.9879 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003021/0.894, allocations: 47.91 kB / 0.9879 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.894, allocations: 4 kB / 0.9879 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002424/0.8943, allocations: 35.88 kB / 0.988 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.932e-05/0.8943, allocations: 8 kB / 0.988 GB, free: 14.74 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.decreaseSampler.y,decreaseSampler.y,$PRE.increaseSampler.y,increaseSampler.y,$PRE.changeSampler.y,changeSampler.y,$whenCondition2,$PRE.timTabLin.tab.nextTimeEvent,$whenCondition4,$whenCondition3,$whenCondition1,$PRE.cha.u,cha.u,cha.y,cha.up,cha.down,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 30 * Array equations: 0 * 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 0.0002618/0.8946, allocations: 165.7 kB / 0.9881 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.614e-05/0.8947, allocations: 23.72 kB / 0.9882 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.163e-05/0.8948, allocations: 26.17 kB / 0.9882 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.8948, allocations: 0 / 0.9882 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.8948, allocations: 0 / 0.9882 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.8948, allocations: 4 kB / 0.9882 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009343/0.8957, allocations: 0.5618 MB / 0.9887 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.8958, allocations: 3.984 kB / 0.9888 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.214e-05/0.8959, allocations: 23.92 kB / 0.9888 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.8959, allocations: 0 / 0.9888 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.8959, allocations: 4 kB / 0.9888 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.8959, allocations: 0 / 0.9888 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.197e-06/0.8959, allocations: 3.953 kB / 0.9888 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000477/0.8964, allocations: 304.8 kB / 0.9891 GB, free: 13.55 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.208e-05/0.8965, allocations: 100.9 kB / 0.9892 GB, free: 13.44 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.537e-05/0.8965, allocations: 4 kB / 0.9892 GB, free: 13.43 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.8967, allocations: 15.98 kB / 0.9892 GB, free: 13.42 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.993e-05/0.8968, allocations: 23.91 kB / 0.9892 GB, free: 13.39 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.8968, allocations: 11.95 kB / 0.9892 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002273/0.897, allocations: 205.9 kB / 0.9894 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.81e-07/0.897, allocations: 4 kB / 0.9894 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003379/0.8974, allocations: 55.84 kB / 0.9895 GB, free: 13.12 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 (cha.y,cha.up,cha.down,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,cha.u,changeSampler.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,increaseSampler.y,decreaseSampler.y) * Number of discrete states: 3 (timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,cha.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001905/0.8993, allocations: 1.142 MB / 0.9906 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005366/0.8999, allocations: 202.1 kB / 0.9908 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8999, allocations: 0 / 0.9908 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001958/0.9001, allocations: 79.88 kB / 0.9909 GB, free: 11.84 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.9004, allocations: 46.2 kB / 0.9909 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.902, allocations: 1.46 MB / 0.9923 GB, free: 10.26 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.9024, allocations: 0.7599 MB / 0.9931 GB, free: 9.477 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001242/0.9026, allocations: 37.91 kB / 0.9931 GB, free: 9.438 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.9027, allocations: 75.41 kB / 0.9932 GB, free: 9.367 MB / 0.7481 GB Notification: Performance of SimCode: time 5.71e-07/0.9027, allocations: 0 / 0.9932 GB, free: 9.367 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.9241, allocations: 4.938 MB / 0.998 GB, free: 4.59 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000255/0.9244, allocations: 220.6 kB / 0.9982 GB, free: 4.355 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.525/3.45, allocations: 0 / 0.9982 GB, free: 4.355 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Change.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Change_res.mat does not exist to compare? outputFormat=mat