Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.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.Stage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Stage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Stage,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Stage",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.00115/0.00115, allocations: 99.39 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.001787/0.001788, 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.849/1.849, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 3.259/3.259, allocations: 409.2 MB / 0.6838 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003992/0.0003992, allocations: 11.98 kB / 0.8375 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.241/1.241, allocations: 146.8 MB / 0.9809 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Stage): time 0.001574/1.243, allocations: 0.6129 MB / 0.9815 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002167/1.245, allocations: 1.026 MB / 0.9825 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.967e-05/1.245, allocations: 7.938 kB / 0.9825 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.000133/1.245, allocations: 19.91 kB / 0.9825 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001863/1.245, allocations: 39.86 kB / 0.9825 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/1.246, allocations: 103.7 kB / 0.9826 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003667/1.246, allocations: 183.7 kB / 0.9828 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/1.246, allocations: 25.67 kB / 0.9828 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003459/1.247, allocations: 139.6 kB / 0.983 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003801/1.247, allocations: 187.5 kB / 0.9832 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.014e-05/1.247, allocations: 16 kB / 0.9832 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.132e-05/1.247, allocations: 16 kB / 0.9832 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001748/1.247, allocations: 91.77 kB / 0.9833 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001211/1.248, allocations: 65.56 kB / 0.9833 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003933/1.248, allocations: 237.6 kB / 0.9836 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/1.248, allocations: 0 / 0.9836 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.135e-06/1.248, allocations: 0 / 0.9836 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.913e-06/1.248, allocations: 0 / 0.9836 GB, free: 3.531 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.003133/1.251, allocations: 0.8265 MB / 0.9844 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.608e-05/1.251, allocations: 12.03 kB / 0.9844 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/1.251, allocations: 46.55 kB / 0.9844 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/1.252, allocations: 27.72 kB / 0.9844 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/1.253, allocations: 326.5 kB / 0.9848 GB, free: 2.203 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.165e-05/1.253, allocations: 23.98 kB / 0.9848 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.672e-05/1.253, allocations: 28 kB / 0.9848 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/1.254, allocations: 335 kB / 0.9851 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/1.254, allocations: 0 / 0.9851 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.891e-05/1.254, allocations: 4 kB / 0.9851 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/1.254, allocations: 15.92 kB / 0.9851 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/1.255, allocations: 211.7 kB / 0.9854 GB, free: 1.586 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00273/1.258, allocations: 0.7463 MB / 0.9861 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/1.259, allocations: 277 kB / 0.9863 GB, free: 0.4961 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.25e-05/1.259, allocations: 11.97 kB / 0.9864 GB, free: 496 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001186/1.261, allocations: 348.6 kB / 0.9867 GB, free: 128 kB / 0.7325 GB Notification: Performance of pre-optimization done (n=30): time 3.257e-06/1.261, allocations: 0 / 0.9867 GB, free: 128 kB / 0.7325 GB Notification: Performance of matching and sorting (n=30): time 0.002957/1.263, allocations: 0.644 MB / 0.9873 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/1.264, allocations: 93.09 kB / 0.9874 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002957/1.264, allocations: 198.9 kB / 0.9876 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001095/1.264, allocations: 57.69 kB / 0.9876 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/1.264, allocations: 125 kB / 0.9878 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/1.264, allocations: 79.16 kB / 0.9878 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/1.264, allocations: 12 kB / 0.9879 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001725/1.265, allocations: 338.8 kB / 0.9882 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004027/1.265, allocations: 116.8 kB / 0.9883 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000447/1.265, allocations: 173.5 kB / 0.9885 GB, free: 14.24 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003275/1.266, allocations: 91.55 kB / 0.9885 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/1.266, allocations: 0 / 0.9885 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001001/1.267, allocations: 338.4 kB / 0.9889 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/1.267, allocations: 8.125 kB / 0.9889 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/1.267, allocations: 4 kB / 0.9889 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/1.267, allocations: 0 / 0.9889 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003141/1.267, allocations: 43.92 kB / 0.9889 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.297e-05/1.267, allocations: 15.92 kB / 0.9889 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006231/1.268, allocations: 95.67 kB / 0.989 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/1.268, allocations: 16 kB / 0.989 GB, free: 13.64 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: 52 ($PRE.zerHolTim.y,zerHolTim.y,$PRE.sta.y,sta.y,$whenCondition4,$whenCondition3,$PRE.sta.tNext,sta.tNext,$PRE.sta.upperThreshold,sta.upperThreshold,$PRE.sta.lowerThreshold,sta.lowerThreshold,$PRE.sta.checkUpper,sta.checkUpper,$PRE.sta.checkLower,sta.checkLower,$PRE.zerHolTim.tNext,zerHolTim.tNext,$PRE.zerHolTim.upperThreshold,zerHolTim.upperThreshold,$PRE.zerHolTim.lowerThreshold,zerHolTim.lowerThreshold,$PRE.zerHolTim.checkUpper,zerHolTim.checkUpper,$PRE.zerHolTim.checkLower,zerHolTim.checkLower,$PRE.lesHolTim.y,lesHolTim.y,$PRE.sta1.y,sta1.y,$whenCondition2,$whenCondition1,$PRE.sta1.tNext,sta1.tNext,$PRE.sta1.upperThreshold,sta1.upperThreshold,$PRE.sta1.lowerThreshold,sta1.lowerThreshold,$PRE.sta1.checkUpper,sta1.checkUpper,$PRE.sta1.checkLower,sta1.checkLower,$PRE.lesHolTim.tNext,lesHolTim.tNext,$PRE.lesHolTim.upperThreshold,lesHolTim.upperThreshold,$PRE.lesHolTim.lowerThreshold,lesHolTim.lowerThreshold,$PRE.lesHolTim.checkUpper,lesHolTim.checkUpper,$PRE.lesHolTim.checkLower,lesHolTim.checkLower) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * 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.0003138/1.268, allocations: 176.3 kB / 0.9892 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.676e-05/1.268, allocations: 23.72 kB / 0.9892 GB, free: 13.44 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.764e-05/1.268, allocations: 29.52 kB / 0.9893 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/1.269, allocations: 4 kB / 0.9893 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/1.269, allocations: 0 / 0.9893 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/1.269, allocations: 0 / 0.9893 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004489/1.269, allocations: 313.2 kB / 0.9896 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/1.269, allocations: 3.953 kB / 0.9896 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001111/1.269, allocations: 8 kB / 0.9896 GB, free: 13.03 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/1.269, allocations: 4 kB / 0.9896 GB, free: 13.03 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.308e-05/1.269, allocations: 15.97 kB / 0.9896 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/1.269, allocations: 7.938 kB / 0.9896 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/1.269, allocations: 0 / 0.9896 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/1.271, allocations: 0.5274 MB / 0.9901 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/1.271, allocations: 104.8 kB / 0.9902 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/1.272, allocations: 11.98 kB / 0.9902 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007987/1.272, allocations: 99.89 kB / 0.9903 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002835/1.273, allocations: 87.77 kB / 0.9904 GB, free: 12.13 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.87e-05/1.273, allocations: 15.98 kB / 0.9904 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001943/1.273, allocations: 148.4 kB / 0.9906 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.9e-07/1.273, allocations: 0 / 0.9906 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005742/1.274, allocations: 60 kB / 0.9906 GB, free: 11.91 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition4,$whenCondition3,sta.y,sta.tNext,sta.upperThreshold,sta.lowerThreshold,sta.checkUpper,sta.checkLower,zerHolTim.y,zerHolTim.tNext,zerHolTim.upperThreshold,zerHolTim.lowerThreshold,zerHolTim.checkUpper,zerHolTim.checkLower,$whenCondition2,$whenCondition1,sta1.y,sta1.tNext,sta1.upperThreshold,sta1.lowerThreshold,sta1.checkUpper,sta1.checkLower,lesHolTim.y,lesHolTim.tNext,lesHolTim.upperThreshold,lesHolTim.lowerThreshold,lesHolTim.checkUpper,lesHolTim.checkLower) * Number of discrete states: 20 (sta1.lowerThreshold,lesHolTim.lowerThreshold,lesHolTim.checkLower,lesHolTim.checkUpper,lesHolTim.upperThreshold,sta1.checkLower,sta1.checkUpper,sta1.upperThreshold,sta1.tNext,lesHolTim.tNext,sta.lowerThreshold,zerHolTim.lowerThreshold,zerHolTim.checkLower,zerHolTim.checkUpper,zerHolTim.upperThreshold,sta.checkLower,sta.checkUpper,sta.upperThreshold,sta.tNext,zerHolTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.002661/1.276, allocations: 1.181 MB / 0.9918 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001421/1.278, allocations: 350.3 kB / 0.9921 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/1.278, allocations: 0 / 0.9921 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0009282/1.279, allocations: 212.1 kB / 0.9923 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006535/1.279, allocations: 55.94 kB / 0.9924 GB, free: 10.1 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00529/1.285, allocations: 2.338 MB / 0.9946 GB, free: 7.684 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/1.285, allocations: 0.7563 MB / 0.9954 GB, free: 6.898 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002731/1.285, allocations: 38.97 kB / 0.9954 GB, free: 6.863 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000244/1.286, allocations: 75.39 kB / 0.9955 GB, free: 6.789 MB / 0.7481 GB Notification: Performance of SimCode: time 1.423e-06/1.286, allocations: 0 / 0.9955 GB, free: 6.789 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03091/1.317, allocations: 6.884 MB / 1.002 GB, free: 92 kB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000332/1.317, allocations: 186.2 kB / 1.002 GB, free: 15.85 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/3.895, allocations: 0 / 1.002 GB, free: 15.85 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Stage_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Stage.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Stage_res.mat does not exist to compare? outputFormat=mat