Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001512/0.001512, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001744/0.001744, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 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 1.39/1.39, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 43.94 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2528, allocations: 53.36 MB / 431.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003007/0.2559, allocations: 1.859 MB / 433.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.2571, allocations: 0.7128 MB / 434.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.519e-05/0.2572, allocations: 7.938 kB / 434.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.2573, allocations: 27.67 kB / 434.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.2574, allocations: 35.66 kB / 434.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003009/0.2577, allocations: 95.77 kB / 434.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002397/0.258, allocations: 183.4 kB / 434.8 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001564/0.2581, allocations: 50.92 kB / 434.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.2583, allocations: 87.64 kB / 435 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.2584, allocations: 83.61 kB / 435 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.943e-05/0.2585, allocations: 12 kB / 435.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.553e-05/0.2585, allocations: 31.98 kB / 435.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.469e-05/0.2586, allocations: 43.84 kB / 435.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.645e-05/0.2587, allocations: 87.45 kB / 435.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.259, allocations: 207.4 kB / 435.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.259, allocations: 0 / 435.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.259, allocations: 4 kB / 435.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.259, allocations: 4 kB / 435.4 MB, free: 3.32 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.0008594/0.2599, allocations: 445.2 kB / 435.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2599, allocations: 15.97 kB / 435.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.285e-05/0.2599, allocations: 4.188 kB / 435.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.905e-05/0.2599, allocations: 46.73 kB / 435.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.2601, allocations: 36.78 kB / 436 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.2604, allocations: 195.7 kB / 436.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.2604, allocations: 12.38 kB / 436.2 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.061e-05/0.2604, allocations: 16.38 kB / 436.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003908/0.2608, allocations: 222.2 kB / 436.4 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.2608, allocations: 4 kB / 436.4 MB, free: 2.262 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.2608, allocations: 4 kB / 436.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.033e-05/0.2609, allocations: 8 kB / 436.4 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003212/0.2612, allocations: 139.8 kB / 436.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.2622, allocations: 0.7495 MB / 437.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006074/0.2628, allocations: 182.7 kB / 437.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.263, allocations: 60.77 kB / 437.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.016e-05/0.263, allocations: 0 / 437.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002682/0.2633, allocations: 154.4 kB / 437.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.2633, allocations: 0 / 437.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005713/0.2638, allocations: 241.4 kB / 437.9 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.2639, allocations: 85.09 kB / 438 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002164/0.2641, allocations: 234.9 kB / 438.2 MB, free: 316 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.2641, allocations: 29.7 kB / 438.3 MB, free: 280 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.2642, allocations: 144.3 kB / 438.4 MB, free: 132 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.2643, allocations: 35.73 kB / 438.4 MB, free: 96 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.45e-05/0.2644, allocations: 65.64 kB / 438.5 MB, free: 24 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2645, allocations: 326.8 kB / 438.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.2647, allocations: 67.95 kB / 438.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.2649, allocations: 136.5 kB / 439 MB, free: 15.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003591/0.2652, allocations: 208.4 kB / 439.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2652, allocations: 0 / 439.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004613/0.2657, allocations: 253.7 kB / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.2657, allocations: 8 kB / 439.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2657, allocations: 4 kB / 439.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.2657, allocations: 0 / 439.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.2659, allocations: 43.86 kB / 439.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.2659, allocations: 7.984 kB / 439.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001663/0.2661, allocations: 35.77 kB / 439.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.2661, allocations: 8 kB / 439.6 MB, free: 14.87 MB / 350.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.00014/0.2662, allocations: 151.9 kB / 439.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.316e-05/0.2663, allocations: 19.89 kB / 439.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002643/0.2665, allocations: 135.3 kB / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.2665, allocations: 4 kB / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.2665, allocations: 0 / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2666, allocations: 7.938 kB / 439.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006221/0.2672, allocations: 457.3 kB / 440.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2672, allocations: 0 / 440.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.2673, allocations: 15.98 kB / 440.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.2673, allocations: 4 kB / 440.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.2673, allocations: 3.938 kB / 440.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2673, allocations: 0 / 440.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2673, allocations: 7.938 kB / 440.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004288/0.2677, allocations: 285.9 kB / 440.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.959e-05/0.2678, allocations: 27.77 kB / 440.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.336e-05/0.2678, allocations: 7.938 kB / 440.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.268, allocations: 15.98 kB / 440.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.117e-05/0.2681, allocations: 23.95 kB / 440.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.2681, allocations: 4 kB / 440.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001302/0.2682, allocations: 148.6 kB / 440.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2682, allocations: 4 kB / 440.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002998/0.2685, allocations: 43.89 kB / 440.9 MB, free: 13.45 MB / 350.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.0007737/0.2693, allocations: 0.8311 MB / 441.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00039/0.2697, allocations: 163.7 kB / 441.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2697, allocations: 0 / 441.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.2698, allocations: 75.89 kB / 442 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.2702, allocations: 28.47 kB / 442 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.2729, allocations: 2.243 MB / 444.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.2733, allocations: 0.7359 MB / 445 MB, free: 9.172 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.73e-05/0.2734, allocations: 37.86 kB / 445 MB, free: 9.137 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.2735, allocations: 67.41 kB / 445.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2735, allocations: 0 / 445.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/0.2982, allocations: 4.405 MB / 449.5 MB, free: 4.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.91, allocations: 15.92 kB / 449.5 MB, free: 4.801 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197941 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.205266784993] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 11.071159594983328 11.089497821 10.826849526 Calling exit ...