Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.971/2.971, allocations: 287.5 MB / 302.4 MB, free: 8.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001318/0.001318, allocations: 181.9 kB / 371 MB, free: 10.83 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.171/2.171, allocations: 205.4 MB / 0.6297 GB, free: 10.56 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009295/0.0009296, allocations: 82.36 kB / 0.743 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000494/0.0004941, allocations: 12.53 kB / 0.8659 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.2227, allocations: 115.3 MB / 0.9785 GB, free: 28.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch): time 0.001103/0.2239, allocations: 0.5372 MB / 0.979 GB, free: 27.69 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002962/0.2269, allocations: 1.27 MB / 0.9802 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.438e-05/0.227, allocations: 0 / 0.9802 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.45e-05/0.2271, allocations: 7.922 kB / 0.9802 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.848e-05/0.2272, allocations: 19.86 kB / 0.9803 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.2284, allocations: 283 kB / 0.9805 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002948/0.2287, allocations: 235.5 kB / 0.9808 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.2289, allocations: 33.61 kB / 0.9808 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001438/0.229, allocations: 95.8 kB / 0.9809 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.2292, allocations: 79.69 kB / 0.981 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.867e-05/0.2293, allocations: 16 kB / 0.981 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.2294, allocations: 31.98 kB / 0.981 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.771e-05/0.2295, allocations: 15.92 kB / 0.981 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.985e-05/0.2296, allocations: 53.64 kB / 0.9811 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002393/0.2298, allocations: 183.8 kB / 0.9812 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2298, allocations: 0 / 0.9812 GB, free: 25.37 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.084e-06/0.2298, allocations: 3.938 kB / 0.9812 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.2299, allocations: 0 / 0.9812 GB, free: 25.36 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006134/0.2305, allocations: 484.1 kB / 0.9817 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.2305, allocations: 16.02 kB / 0.9817 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.54e-05/0.2306, allocations: 38.55 kB / 0.9818 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.947e-05/0.2307, allocations: 27.77 kB / 0.9818 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.2308, allocations: 175.5 kB / 0.982 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.783e-05/0.2309, allocations: 12 kB / 0.982 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.958e-05/0.2309, allocations: 23.98 kB / 0.982 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002314/0.2312, allocations: 91.67 kB / 0.9821 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.2312, allocations: 0 / 0.9821 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.2312, allocations: 8 kB / 0.9821 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.2313, allocations: 3.938 kB / 0.9821 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001457/0.2314, allocations: 43.97 kB / 0.9821 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008401/0.2323, allocations: 0.4923 MB / 0.9826 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.2326, allocations: 78.48 kB / 0.9827 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.974e-05/0.2327, allocations: 32.97 kB / 0.9827 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.2327, allocations: 0 / 0.9827 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002503/0.233, allocations: 111.5 kB / 0.9828 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=14): time 1.863e-06/0.233, allocations: 0 / 0.9828 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14): time 0.000518/0.2335, allocations: 173.4 kB / 0.983 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.2336, allocations: 59.39 kB / 0.983 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.2337, allocations: 163.4 kB / 0.9832 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.578e-05/0.2338, allocations: 33.7 kB / 0.9832 GB, free: 23.1 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.29e-05/0.2339, allocations: 104 kB / 0.9833 GB, free: 23 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.299e-05/0.2339, allocations: 31.64 kB / 0.9834 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-05/0.234, allocations: 12 kB / 0.9834 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.777e-05/0.2341, allocations: 326.8 kB / 0.9837 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00031/0.2344, allocations: 91.94 kB / 0.9838 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003323/0.2347, allocations: 142 kB / 0.9839 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003253/0.2351, allocations: 177 kB / 0.9841 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2351, allocations: 4 kB / 0.9841 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009436/0.236, allocations: 396.2 kB / 0.9845 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.39e-05/0.2361, allocations: 105 kB / 0.9846 GB, free: 21.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.2361, allocations: 4 kB / 0.9846 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/0.2362, allocations: 8.172 kB / 0.9846 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.2363, allocations: 23.92 kB / 0.9846 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.2363, allocations: 3.984 kB / 0.9846 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009983/0.2373, allocations: 122.6 kB / 0.9847 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.178e-05/0.2374, allocations: 23.97 kB / 0.9847 GB, free: 21.47 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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.0001689/0.2376, allocations: 137.8 kB / 0.9849 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.135e-05/0.2376, allocations: 11.91 kB / 0.9849 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.566e-05/0.2377, allocations: 16.73 kB / 0.9849 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.2377, allocations: 4 kB / 0.9849 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2377, allocations: 0 / 0.9849 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.2377, allocations: 3.984 kB / 0.9849 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002037/0.2379, allocations: 213.6 kB / 0.9851 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.238, allocations: 0 / 0.9851 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.978e-05/0.238, allocations: 15.98 kB / 0.9851 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.2381, allocations: 4 kB / 0.9851 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.2381, allocations: 0 / 0.9851 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.2381, allocations: 7.953 kB / 0.9851 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2381, allocations: 0 / 0.9851 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.2384, allocations: 167 kB / 0.9853 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.905e-05/0.2385, allocations: 92.86 kB / 0.9854 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.977e-05/0.2385, allocations: 4 kB / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.608e-05/0.2386, allocations: 3.984 kB / 0.9854 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.452e-05/0.2386, allocations: 19.94 kB / 0.9854 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.2387, allocations: 4 kB / 0.9854 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 8.219e-05/0.2388, allocations: 115.2 kB / 0.9855 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.11e-07/0.2388, allocations: 0 / 0.9855 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003774/0.2392, allocations: 52 kB / 0.9856 GB, free: 20.52 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005663/0.2397, allocations: 0.7021 MB / 0.9863 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006826/0.2404, allocations: 374.1 kB / 0.9866 GB, free: 19.39 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.2405, allocations: 0 / 0.9866 GB, free: 19.39 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.2406, allocations: 57.23 kB / 0.9867 GB, free: 19.33 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.241, allocations: 28.31 kB / 0.9867 GB, free: 19.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002371/0.2434, allocations: 1.073 MB / 0.9877 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001705/0.2436, allocations: 0.7122 MB / 0.9884 GB, free: 17.43 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.895e-05/0.2437, allocations: 12.64 kB / 0.9884 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.808e-05/0.2438, allocations: 39.42 kB / 0.9885 GB, free: 17.38 MB / 0.6198 GB Notification: Performance of SimCode: time 1.192e-06/0.2438, allocations: 0 / 0.9885 GB, free: 17.38 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.031/0.2748, allocations: 3.916 MB / 0.9923 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001971/0.2751, allocations: 195.7 kB / 0.9925 GB, free: 13.41 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/2.927, allocations: 3.938 kB / 0.9925 GB, free: 13.41 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.pipe 2>&1)