Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.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.004888/0.004888, allocations: 114.5 kB / 21.97 MB, free: 5.227 MB / 14.72 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.001352/0.001352, allocations: 216.2 kB / 25.28 MB, free: 3.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.3/1.3, allocations: 207.6 MB / 236 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 179] 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 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(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.001612/0.001612, allocations: 50.58 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2391, allocations: 49.18 MB / 397.1 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002579/0.2417, allocations: 1.828 MB / 399 MB, free: 7.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009196/0.2426, allocations: 0.6824 MB / 399.6 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.553e-05/0.2427, allocations: 6.594 kB / 399.6 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000113/0.2428, allocations: 27.12 kB / 399.7 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001144/0.2429, allocations: 31.02 kB / 399.7 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002613/0.2432, allocations: 90.09 kB / 399.8 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001966/0.2434, allocations: 173.9 kB / 400 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.2435, allocations: 59.77 kB / 400 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.2436, allocations: 73.69 kB / 400.1 MB, free: 7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001381/0.2438, allocations: 94.03 kB / 400.2 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/0.2438, allocations: 13.72 kB / 400.2 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.823e-05/0.2439, allocations: 21.36 kB / 400.2 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.918e-05/0.2439, allocations: 45.45 kB / 400.3 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.738e-05/0.244, allocations: 90.34 kB / 400.3 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000249/0.2442, allocations: 198.5 kB / 400.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.2443, allocations: 5.25 kB / 400.5 MB, free: 6.773 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2443, allocations: 0 / 400.5 MB, free: 6.773 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.2443, allocations: 0 / 400.5 MB, free: 6.773 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0007262/0.245, allocations: 447.2 kB / 401 MB, free: 6.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.245, allocations: 14.33 kB / 401 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.337e-05/0.245, allocations: 4.656 kB / 401 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.508e-05/0.2451, allocations: 47.28 kB / 401 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.643e-05/0.2451, allocations: 23.83 kB / 401.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.2453, allocations: 187.1 kB / 401.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.2453, allocations: 11.53 kB / 401.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.573e-05/0.2454, allocations: 17.16 kB / 401.3 MB, free: 6.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003502/0.2457, allocations: 211.1 kB / 401.5 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2457, allocations: 1.953 kB / 401.5 MB, free: 6.059 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.2457, allocations: 5.406 kB / 401.5 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.2458, allocations: 18.36 kB / 401.5 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003018/0.2461, allocations: 142 kB / 401.7 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008704/0.2469, allocations: 0.7548 MB / 402.4 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/0.2475, allocations: 177 kB / 402.6 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.2476, allocations: 68.12 kB / 402.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.2477, allocations: 2.562 kB / 402.7 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002339/0.2479, allocations: 146.7 kB / 402.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.193e-06/0.2479, allocations: 0 / 402.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005339/0.2484, allocations: 250.8 kB / 403 MB, free: 5.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/0.2485, allocations: 80.12 kB / 403.1 MB, free: 5.035 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.2486, allocations: 225 kB / 403.3 MB, free: 4.883 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.2487, allocations: 33.11 kB / 403.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.641e-05/0.2487, allocations: 143.8 kB / 403.5 MB, free: 4.719 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/0.2487, allocations: 37.64 kB / 403.5 MB, free: 4.691 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.362e-05/0.2488, allocations: 53.89 kB / 403.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.048e-05/0.2489, allocations: 333.9 kB / 403.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.249, allocations: 68.83 kB / 404 MB, free: 4.32 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.2492, allocations: 131.2 kB / 404.1 MB, free: 4.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000295/0.2495, allocations: 216.9 kB / 404.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2495, allocations: 0.9688 kB / 404.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003885/0.2499, allocations: 251.4 kB / 404.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2499, allocations: 5.844 kB / 404.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.2499, allocations: 2.531 kB / 404.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.2499, allocations: 7.25 kB / 404.6 MB, free: 3.965 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.25, allocations: 38.64 kB / 404.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.2501, allocations: 3.406 kB / 404.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/0.2502, allocations: 43.77 kB / 404.7 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.2502, allocations: 7.656 kB / 404.7 MB, free: 3.938 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001028/0.2503, allocations: 148.6 kB / 404.8 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.868e-05/0.2504, allocations: 21.16 kB / 404.9 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002158/0.2506, allocations: 130.2 kB / 405 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.2506, allocations: 3.438 kB / 405 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.2506, allocations: 0 / 405 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.2506, allocations: 5.797 kB / 405 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004917/0.2511, allocations: 453.4 kB / 405.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2511, allocations: 1.5 kB / 405.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.2512, allocations: 16.03 kB / 405.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.2512, allocations: 5.469 kB / 405.5 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.2512, allocations: 9.469 kB / 405.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2512, allocations: 8.219 kB / 405.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2512, allocations: 1.469 kB / 405.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.2515, allocations: 288.5 kB / 405.8 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.3e-05/0.2516, allocations: 24.14 kB / 405.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.074e-05/0.2516, allocations: 7.703 kB / 405.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.2518, allocations: 18.56 kB / 405.8 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.41e-05/0.2518, allocations: 20.94 kB / 405.8 MB, free: 3.141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.2519, allocations: 4.938 kB / 405.8 MB, free: 3.141 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.635e-05/0.252, allocations: 146.2 kB / 406 MB, free: 3.047 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.252, allocations: 0 / 406 MB, free: 3.047 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002961/0.2523, allocations: 40.28 kB / 406 MB, free: 3.039 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * 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.0005783/0.2528, allocations: 0.838 MB / 406.8 MB, free: 2.305 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003677/0.2532, allocations: 170.7 kB / 407 MB, free: 2.254 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2532, allocations: 0 / 407 MB, free: 2.254 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.2534, allocations: 70.64 kB / 407.1 MB, free: 2.238 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003271/0.2537, allocations: 29.53 kB / 407.1 MB, free: 2.227 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002332/0.256, allocations: 2.255 MB / 409.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.2563, allocations: 0.7331 MB / 410.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.2564, allocations: 35.95 kB / 410.1 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.2565, allocations: 61.33 kB / 410.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2565, allocations: 1.219 kB / 410.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03001/0.2865, allocations: 4.379 MB / 414.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.2, allocations: 13.78 kB / 414.6 MB, free: 13.92 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.354869127972052] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 11.355536101036705 11.37759294 11.129414306 Calling exit ...