Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008885/0.0008885, allocations: 109.9 kB / 18.93 MB, free: 1.27 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 221.7 kB / 22.26 MB, free: 3.691 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.963/0.963, allocations: 230.6 MB / 256 MB, free: 9.805 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.03817/0.03817, allocations: 12.18 MB / 324.6 MB, free: 6.281 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0005491/0.0005491, allocations: 31.94 kB / 384.1 MB, free: 10.69 MB / 314.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo): time 1.684/1.684, allocations: 353.8 MB / 0.7787 GB, free: 3.16 MB / 0.5105 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AixLib requested package Modelica_DeviceDrivers of version 2.1.1. Modelica_DeviceDrivers 2.2.0 is used instead which states that it is fully compatible without conversion script needed. Notification: AixLib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 114.3 kB / 1.06 GB, free: 24.97 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2284, allocations: 134.9 MB / 1.192 GB, free: 7.875 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001632/0.2301, allocations: 0.8264 MB / 1.193 GB, free: 7.051 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.00123/0.2313, allocations: 1.332 MB / 1.194 GB, free: 5.707 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.979e-05/0.2314, allocations: 4 kB / 1.194 GB, free: 5.703 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 3.332e-05/0.2314, allocations: 19.8 kB / 1.194 GB, free: 5.684 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 7.534e-05/0.2315, allocations: 23.8 kB / 1.194 GB, free: 5.66 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006577/0.2321, allocations: 317.8 kB / 1.194 GB, free: 5.359 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0002451/0.2324, allocations: 295.5 kB / 1.194 GB, free: 5.07 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.2325, allocations: 41.47 kB / 1.195 GB, free: 5.023 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.2326, allocations: 115.7 kB / 1.195 GB, free: 4.91 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.2327, allocations: 111.7 kB / 1.195 GB, free: 4.801 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.2328, allocations: 24 kB / 1.195 GB, free: 4.777 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001405/0.2329, allocations: 47.97 kB / 1.195 GB, free: 4.73 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.198e-05/0.2329, allocations: 19.92 kB / 1.195 GB, free: 4.711 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 8.745e-05/0.233, allocations: 107.6 kB / 1.195 GB, free: 4.605 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.2332, allocations: 263.4 kB / 1.195 GB, free: 4.348 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2332, allocations: 0 / 1.195 GB, free: 4.348 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.303e-06/0.2332, allocations: 0 / 1.195 GB, free: 4.348 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.104e-06/0.2333, allocations: 0 / 1.195 GB, free: 4.348 MB / 0.823 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.0004727/0.2337, allocations: 466.8 kB / 1.196 GB, free: 3.844 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.2338, allocations: 8.031 kB / 1.196 GB, free: 3.836 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.993e-05/0.2338, allocations: 46.73 kB / 1.196 GB, free: 3.781 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.973e-05/0.2338, allocations: 20.84 kB / 1.196 GB, free: 3.762 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.234, allocations: 126.9 kB / 1.196 GB, free: 3.613 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.395e-05/0.234, allocations: 19.92 kB / 1.196 GB, free: 3.594 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.234, allocations: 16 kB / 1.196 GB, free: 3.578 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.2342, allocations: 90.69 kB / 1.196 GB, free: 3.484 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.2342, allocations: 3.984 kB / 1.196 GB, free: 3.48 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.2342, allocations: 12 kB / 1.196 GB, free: 3.469 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.2342, allocations: 0 / 1.196 GB, free: 3.469 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.135e-05/0.2343, allocations: 47.97 kB / 1.196 GB, free: 3.422 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005754/0.2349, allocations: 463.3 kB / 1.196 GB, free: 2.926 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.2351, allocations: 62.5 kB / 1.197 GB, free: 2.855 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.971e-05/0.2351, allocations: 36.95 kB / 1.197 GB, free: 2.816 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 9.508e-06/0.2351, allocations: 3.938 kB / 1.197 GB, free: 2.812 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001678/0.2353, allocations: 115.4 kB / 1.197 GB, free: 2.688 MB / 0.823 GB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.2353, allocations: 0 / 1.197 GB, free: 2.688 MB / 0.823 GB Notification: Performance of matching and sorting (n=14): time 0.0002531/0.2356, allocations: 173.5 kB / 1.197 GB, free: 2.512 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.2356, allocations: 51.41 kB / 1.197 GB, free: 2.449 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.2357, allocations: 172.3 kB / 1.197 GB, free: 2.273 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.2357, allocations: 37.7 kB / 1.197 GB, free: 2.23 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.63e-05/0.2358, allocations: 112 kB / 1.197 GB, free: 2.117 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.2358, allocations: 35.78 kB / 1.197 GB, free: 2.082 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.2359, allocations: 73.67 kB / 1.197 GB, free: 2.004 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.653e-05/0.236, allocations: 318.8 kB / 1.198 GB, free: 1.684 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.2361, allocations: 99.94 kB / 1.198 GB, free: 1.586 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.2363, allocations: 149.4 kB / 1.198 GB, free: 1.422 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.2365, allocations: 252.4 kB / 1.198 GB, free: 1.137 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2365, allocations: 0 / 1.198 GB, free: 1.137 MB / 0.823 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004343/0.2369, allocations: 406.4 kB / 1.198 GB, free: 0.7148 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 5.153e-05/0.237, allocations: 101.1 kB / 1.199 GB, free: 0.5977 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.237, allocations: 4 kB / 1.199 GB, free: 0.5938 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.237, allocations: 0 / 1.199 GB, free: 0.5938 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.249e-05/0.237, allocations: 15.94 kB / 1.199 GB, free: 0.5781 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.237, allocations: 0 / 1.199 GB, free: 0.5781 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.2373, allocations: 87.98 kB / 1.199 GB, free: 0.4922 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.2373, allocations: 23.98 kB / 1.199 GB, free: 480 kB / 0.823 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,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.382e-05/0.2374, allocations: 134.3 kB / 1.199 GB, free: 336 kB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.2374, allocations: 23.84 kB / 1.199 GB, free: 312 kB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.447e-05/0.2374, allocations: 8.781 kB / 1.199 GB, free: 304 kB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2374, allocations: 4 kB / 1.199 GB, free: 300 kB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.2374, allocations: 0 / 1.199 GB, free: 300 kB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.2374, allocations: 0 / 1.199 GB, free: 300 kB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.2376, allocations: 204.5 kB / 1.199 GB, free: 52 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2376, allocations: 3.938 kB / 1.199 GB, free: 48 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.843e-05/0.2376, allocations: 8 kB / 1.199 GB, free: 40 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2376, allocations: 0 / 1.199 GB, free: 40 kB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.2376, allocations: 7.984 kB / 1.199 GB, free: 32 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2376, allocations: 0 / 1.199 GB, free: 32 kB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2376, allocations: 4 kB / 1.199 GB, free: 28 kB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001638/0.2378, allocations: 167.8 kB / 1.199 GB, free: 15.85 MB / 0.8387 GB Notification: Performance of postOpt removeConstants (simulation): time 1.523e-05/0.2378, allocations: 15.89 kB / 1.199 GB, free: 15.83 MB / 0.8387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.2378, allocations: 0 / 1.199 GB, free: 15.83 MB / 0.8387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.933e-05/0.2378, allocations: 4 kB / 1.199 GB, free: 15.83 MB / 0.8387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.378e-05/0.2378, allocations: 15.97 kB / 1.199 GB, free: 15.81 MB / 0.8387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/0.2378, allocations: 4 kB / 1.199 GB, free: 15.81 MB / 0.8387 GB Notification: Performance of sorting global known variables: time 5.381e-05/0.2379, allocations: 124.9 kB / 1.199 GB, free: 15.69 MB / 0.8387 GB Notification: Performance of sort global known variables: time 5e-08/0.2379, allocations: 0 / 1.199 GB, free: 15.69 MB / 0.8387 GB Notification: Performance of remove unused functions: time 0.0001801/0.2381, allocations: 51.95 kB / 1.199 GB, free: 15.64 MB / 0.8387 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004121/0.2385, allocations: 0.7075 MB / 1.2 GB, free: 14.9 MB / 0.8387 GB Notification: Performance of simCode: created initialization part: time 0.0003245/0.2388, allocations: 342.1 kB / 1.2 GB, free: 14.53 MB / 0.8387 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2388, allocations: 0 / 1.2 GB, free: 14.53 MB / 0.8387 GB Notification: Performance of simCode: created simulation system equations: time 5.558e-05/0.2389, allocations: 47.92 kB / 1.2 GB, free: 14.48 MB / 0.8387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001882/0.2391, allocations: 21.55 kB / 1.201 GB, free: 14.46 MB / 0.8387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.2409, allocations: 2.254 MB / 1.203 GB, free: 12.08 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.2411, allocations: 0.7045 MB / 1.203 GB, free: 11.35 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 3.386e-05/0.2411, allocations: 16.64 kB / 1.203 GB, free: 11.33 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.915e-05/0.2412, allocations: 35.42 kB / 1.203 GB, free: 11.29 MB / 0.8387 GB Notification: Performance of SimCode: time 5.82e-07/0.2412, allocations: 0 / 1.203 GB, free: 11.29 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01621/0.2574, allocations: 4.402 MB / 1.208 GB, free: 7.043 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.339/6.596, allocations: 18.19 kB / 1.208 GB, free: 7.035 MB / 0.8387 GB " [Timeout remaining time 653] (rm -f AixLib_AixLib.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AixLib_AixLib_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 AixLib_AixLib_Controls_OBC_CDL_Integers_Validation_Switch.fmu > AixLib_AixLib.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.961794447153807] Failed to read output from testmodel.py, exit status != 0: 6.672834664583206 6.6852297830000005 6.450143849 Calling exit ...