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.001236/0.001236, allocations: 103.1 kB / 21.96 MB, free: 5.219 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.0013/0.0013, allocations: 214 kB / 25.26 MB, free: 3.129 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.296/1.296, allocations: 207.7 MB / 236.1 MB, free: 9.789 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.001645/0.001645, allocations: 51.92 kB / 348 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2401, allocations: 49.16 MB / 397.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00338/0.2435, allocations: 1.776 MB / 398.9 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.2446, allocations: 0.6358 MB / 399.5 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.539e-05/0.2447, allocations: 7.156 kB / 399.5 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.2449, allocations: 27.06 kB / 399.6 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.245, allocations: 36.36 kB / 399.6 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.2453, allocations: 86.98 kB / 399.7 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002384/0.2455, allocations: 169 kB / 399.9 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.2457, allocations: 59.58 kB / 399.9 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.2458, allocations: 74.72 kB / 400 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.246, allocations: 89.75 kB / 400.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.566e-05/0.246, allocations: 14.62 kB / 400.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.366e-05/0.2461, allocations: 28.33 kB / 400.1 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.327e-05/0.2462, allocations: 51.02 kB / 400.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.088e-05/0.2462, allocations: 64.86 kB / 400.2 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002939/0.2465, allocations: 199.3 kB / 400.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.2465, allocations: 0 / 400.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2465, allocations: 0 / 400.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.2465, allocations: 0 / 400.4 MB, free: 6.801 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.0008607/0.2474, allocations: 447 kB / 400.9 MB, free: 6.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.2474, allocations: 14.58 kB / 400.9 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.888e-05/0.2475, allocations: 11.86 kB / 400.9 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.227e-05/0.2475, allocations: 52.36 kB / 400.9 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.901e-05/0.2476, allocations: 25.02 kB / 401 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002233/0.2478, allocations: 177.9 kB / 401.1 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/0.2478, allocations: 20.23 kB / 401.2 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.076e-05/0.2478, allocations: 16.31 kB / 401.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.2482, allocations: 212.6 kB / 401.4 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2482, allocations: 1.125 kB / 401.4 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.2482, allocations: 9.828 kB / 401.4 MB, free: 6.066 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.2483, allocations: 12.14 kB / 401.4 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.2486, allocations: 137.2 kB / 401.5 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009093/0.2495, allocations: 0.7164 MB / 402.3 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006398/0.2501, allocations: 185.5 kB / 402.4 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.2503, allocations: 60.22 kB / 402.5 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.74e-05/0.2503, allocations: 6.875 kB / 402.5 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.2506, allocations: 147.5 kB / 402.6 MB, free: 5.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.2506, allocations: 0 / 402.6 MB, free: 5.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005743/0.2512, allocations: 247 kB / 402.9 MB, free: 5.168 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.386e-05/0.2512, allocations: 82.11 kB / 403 MB, free: 5.074 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000198/0.2514, allocations: 226.8 kB / 403.2 MB, free: 4.922 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.2514, allocations: 32.48 kB / 403.2 MB, free: 4.887 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.406e-05/0.2515, allocations: 138.8 kB / 403.4 MB, free: 4.762 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.2515, allocations: 33.45 kB / 403.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.01e-05/0.2516, allocations: 57.62 kB / 403.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.904e-05/0.2517, allocations: 330.9 kB / 403.8 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.2518, allocations: 75.47 kB / 403.8 MB, free: 4.359 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.252, allocations: 138.1 kB / 404 MB, free: 4.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003096/0.2523, allocations: 208.9 kB / 404.2 MB, free: 4.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.2523, allocations: 4 kB / 404.2 MB, free: 4.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004145/0.2527, allocations: 245.2 kB / 404.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.2527, allocations: 5.812 kB / 404.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2527, allocations: 5.969 kB / 404.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.2527, allocations: 4.859 kB / 404.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.2529, allocations: 33.14 kB / 404.5 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.2529, allocations: 12.48 kB / 404.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.2531, allocations: 43.53 kB / 404.5 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.982e-05/0.2531, allocations: 16.39 kB / 404.5 MB, free: 3.973 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.0001083/0.2532, allocations: 147.9 kB / 404.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.87e-05/0.2532, allocations: 20.66 kB / 404.7 MB, free: 3.824 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002403/0.2535, allocations: 131.2 kB / 404.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.2535, allocations: 2.156 kB / 404.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.2535, allocations: 1.969 kB / 404.8 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.2535, allocations: 8.5 kB / 404.8 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004985/0.254, allocations: 434.8 kB / 405.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.254, allocations: 2.172 kB / 405.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.2541, allocations: 21.2 kB / 405.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2541, allocations: 1.281 kB / 405.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.2541, allocations: 9.422 kB / 405.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.2541, allocations: 1.125 kB / 405.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2541, allocations: 1.062 kB / 405.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000337/0.2545, allocations: 294.2 kB / 405.6 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.229e-05/0.2545, allocations: 21.14 kB / 405.6 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.489e-05/0.2545, allocations: 10.94 kB / 405.6 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.2547, allocations: 14.69 kB / 405.6 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.216e-05/0.2548, allocations: 24.11 kB / 405.7 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.2548, allocations: 7.094 kB / 405.7 MB, free: 3.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001005/0.2549, allocations: 145.9 kB / 405.8 MB, free: 3.086 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2549, allocations: 0 / 405.8 MB, free: 3.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002877/0.2552, allocations: 39.94 kB / 405.9 MB, free: 3.078 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.000546/0.2557, allocations: 0.8323 MB / 406.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003812/0.2561, allocations: 158.1 kB / 406.8 MB, free: 2.312 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2561, allocations: 1.344 kB / 406.8 MB, free: 2.312 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.2563, allocations: 78.36 kB / 406.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.2566, allocations: 32.97 kB / 407 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/0.2588, allocations: 2.254 MB / 409.2 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.718e-05/0.2589, allocations: 127 kB / 409.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.259, allocations: 36.75 kB / 409.4 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.2591, allocations: 69.55 kB / 409.4 MB, free: 456 kB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2591, allocations: 0 / 409.4 MB, free: 456 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.2856, allocations: 4.453 MB / 413.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.12, allocations: 3.656 kB / 413.9 MB, free: 14.54 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.292076391982846] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 11.282836303929798 11.300558618 11.050595107 Calling exit ...