Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002042/0.002042, allocations: 187 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 225.7 MB / 253.3 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 47.92 kB / 371.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.221, allocations: 52.18 MB / 423.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002933/0.224, allocations: 1.793 MB / 425.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001008/0.225, allocations: 0.5882 MB / 425.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.366e-05/0.2251, allocations: 7.938 kB / 425.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.2252, allocations: 31.67 kB / 425.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.2253, allocations: 31.72 kB / 425.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.2256, allocations: 87.78 kB / 425.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002287/0.2258, allocations: 167.5 kB / 426 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.2259, allocations: 54.92 kB / 426.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.2261, allocations: 79.64 kB / 426.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.2262, allocations: 91.59 kB / 426.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.178e-05/0.2262, allocations: 16 kB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.565e-05/0.2263, allocations: 16 kB / 426.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.41e-05/0.2264, allocations: 55.72 kB / 426.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.428e-05/0.2265, allocations: 63.66 kB / 426.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000268/0.2267, allocations: 205.4 kB / 426.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2267, allocations: 0 / 426.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2267, allocations: 0 / 426.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.2268, allocations: 4 kB / 426.6 MB, free: 11.12 MB / 334.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.0008353/0.2276, allocations: 444 kB / 427 MB, free: 10.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.2276, allocations: 11.97 kB / 427.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.245e-05/0.2276, allocations: 4.188 kB / 427.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.726e-05/0.2277, allocations: 46.73 kB / 427.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.2277, allocations: 24.8 kB / 427.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.228, allocations: 194.1 kB / 427.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.228, allocations: 15.69 kB / 427.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.375e-05/0.228, allocations: 20 kB / 427.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003891/0.2284, allocations: 198.2 kB / 427.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2285, allocations: 3.938 kB / 427.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.2285, allocations: 11.98 kB / 427.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.917e-05/0.2285, allocations: 11.94 kB / 427.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003191/0.2288, allocations: 139.8 kB / 427.7 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.2298, allocations: 0.7224 MB / 428.4 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006/0.2304, allocations: 178.6 kB / 428.6 MB, free: 8.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.2306, allocations: 64.81 kB / 428.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.2306, allocations: 4 kB / 428.7 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/0.2309, allocations: 152.3 kB / 428.8 MB, free: 8.746 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.2309, allocations: 0 / 428.8 MB, free: 8.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005896/0.2315, allocations: 253.3 kB / 429.1 MB, free: 8.492 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.2315, allocations: 81.11 kB / 429.2 MB, free: 8.395 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.2317, allocations: 218.9 kB / 429.4 MB, free: 8.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.2318, allocations: 25.7 kB / 429.4 MB, free: 8.141 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.2319, allocations: 148.4 kB / 429.5 MB, free: 7.992 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.847e-05/0.2319, allocations: 35.69 kB / 429.6 MB, free: 7.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.895e-05/0.232, allocations: 69.62 kB / 429.6 MB, free: 7.883 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.2322, allocations: 330.8 kB / 430 MB, free: 7.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.2323, allocations: 67.95 kB / 430 MB, free: 7.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002044/0.2325, allocations: 136.5 kB / 430.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003501/0.2329, allocations: 216.3 kB / 430.4 MB, free: 7.078 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2329, allocations: 0 / 430.4 MB, free: 7.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004475/0.2333, allocations: 245.5 kB / 430.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.2333, allocations: 8 kB / 430.6 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.2333, allocations: 4 kB / 430.6 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.2334, allocations: 3.938 kB / 430.6 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.2335, allocations: 39.91 kB / 430.7 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.2335, allocations: 11.92 kB / 430.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.2337, allocations: 35.83 kB / 430.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.2337, allocations: 4 kB / 430.7 MB, free: 6.727 MB / 334.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.0001414/0.2339, allocations: 155.8 kB / 430.9 MB, free: 6.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.296e-05/0.2339, allocations: 19.91 kB / 430.9 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002609/0.2342, allocations: 131.4 kB / 431 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.2342, allocations: 3.938 kB / 431 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.2342, allocations: 7.938 kB / 431 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.2342, allocations: 3.984 kB / 431 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006039/0.2348, allocations: 433.4 kB / 431.5 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.2348, allocations: 3.938 kB / 431.5 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.2349, allocations: 20.3 kB / 431.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2349, allocations: 4 kB / 431.5 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.2349, allocations: 4 kB / 431.5 MB, free: 5.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.2349, allocations: 8 kB / 431.5 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2349, allocations: 0 / 431.5 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004235/0.2354, allocations: 292 kB / 431.8 MB, free: 5.578 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.397e-05/0.2354, allocations: 19.84 kB / 431.8 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.2354, allocations: 0 / 431.8 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.2356, allocations: 19.98 kB / 431.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.039e-05/0.2357, allocations: 23.95 kB / 431.8 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.2357, allocations: 12 kB / 431.9 MB, free: 5.504 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001222/0.2358, allocations: 140.6 kB / 432 MB, free: 5.367 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2358, allocations: 0 / 432 MB, free: 5.367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.2361, allocations: 43.88 kB / 432 MB, free: 5.324 MB / 334.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.0007671/0.2369, allocations: 0.8268 MB / 432.9 MB, free: 4.469 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003858/0.2372, allocations: 167.8 kB / 433 MB, free: 4.305 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2372, allocations: 0 / 433 MB, free: 4.305 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.2374, allocations: 71.89 kB / 433.1 MB, free: 4.234 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.2378, allocations: 36.28 kB / 433.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.2405, allocations: 2.244 MB / 435.4 MB, free: 1.801 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001147/0.2406, allocations: 120.9 kB / 435.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.755e-05/0.2407, allocations: 33.61 kB / 435.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.2408, allocations: 63.42 kB / 435.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2408, allocations: 0 / 435.6 MB, free: 1.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02478/0.2656, allocations: 4.463 MB / 440.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.31, allocations: 13.95 kB / 440.1 MB, free: 13.28 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.548879519919865] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 11.467479569953866 11.482474928 11.252664434 Calling exit ...