Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00178/0.00178, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001998/0.001998, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.497/1.497, allocations: 230.6 MB / 258.3 MB, free: 8.051 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 72.77 kB / 378.5 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2702, allocations: 53.37 MB / 431.9 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003221/0.2735, allocations: 1.858 MB / 433.8 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.2747, allocations: 0.7128 MB / 434.5 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.798e-05/0.2748, allocations: 7.938 kB / 434.5 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.275, allocations: 27.67 kB / 434.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.2751, allocations: 27.73 kB / 434.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000318/0.2754, allocations: 99.7 kB / 434.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002505/0.2757, allocations: 183.4 kB / 434.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.2758, allocations: 50.94 kB / 434.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001756/0.276, allocations: 91.62 kB / 435 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.2762, allocations: 87.61 kB / 435 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.91e-05/0.2762, allocations: 12 kB / 435.1 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.263e-05/0.2763, allocations: 31.98 kB / 435.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.488e-05/0.2763, allocations: 39.84 kB / 435.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.682e-05/0.2764, allocations: 91.41 kB / 435.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002823/0.2767, allocations: 203.9 kB / 435.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2767, allocations: 0 / 435.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2767, allocations: 0 / 435.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.2767, allocations: 7.938 kB / 435.4 MB, free: 3.383 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.0009072/0.2776, allocations: 445.2 kB / 435.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.2777, allocations: 12.03 kB / 435.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.143e-05/0.2777, allocations: 50.72 kB / 435.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.2779, allocations: 32.78 kB / 436 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.2782, allocations: 195.7 kB / 436.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.2782, allocations: 12.38 kB / 436.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.363e-05/0.2782, allocations: 20.38 kB / 436.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.2786, allocations: 209.8 kB / 436.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.2786, allocations: 0 / 436.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.2787, allocations: 8 kB / 436.4 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/0.2787, allocations: 15.94 kB / 436.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003166/0.279, allocations: 139.8 kB / 436.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.2801, allocations: 0.7534 MB / 437.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005921/0.2806, allocations: 186.6 kB / 437.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.2808, allocations: 56.83 kB / 437.5 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.81e-05/0.2808, allocations: 4 kB / 437.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002911/0.2811, allocations: 141 kB / 437.7 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.2811, allocations: 0 / 437.7 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005899/0.2817, allocations: 253.3 kB / 437.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.603e-05/0.2818, allocations: 85.11 kB / 438 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.282, allocations: 223 kB / 438.2 MB, free: 392 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.282, allocations: 29.7 kB / 438.3 MB, free: 356 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.2821, allocations: 144.3 kB / 438.4 MB, free: 208 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.641e-05/0.2822, allocations: 35.72 kB / 438.4 MB, free: 172 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.499e-05/0.2823, allocations: 65.64 kB / 438.5 MB, free: 100 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.2824, allocations: 334.8 kB / 438.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.2826, allocations: 67.95 kB / 438.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.2828, allocations: 136.5 kB / 439 MB, free: 15.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003477/0.2831, allocations: 212.4 kB / 439.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2831, allocations: 0 / 439.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004528/0.2836, allocations: 249.2 kB / 439.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.2836, allocations: 8.25 kB / 439.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.2836, allocations: 4 kB / 439.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.2836, allocations: 4 kB / 439.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.2838, allocations: 35.92 kB / 439.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.2838, allocations: 7.984 kB / 439.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.284, allocations: 35.77 kB / 439.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.284, allocations: 11.94 kB / 439.6 MB, free: 14.94 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.0001477/0.2841, allocations: 151.8 kB / 439.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.059e-05/0.2842, allocations: 15.91 kB / 439.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002587/0.2844, allocations: 135.3 kB / 439.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2844, allocations: 0 / 439.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2844, allocations: 0 / 439.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.2844, allocations: 7.938 kB / 439.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006443/0.2851, allocations: 457.3 kB / 440.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2851, allocations: 0 / 440.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.2852, allocations: 20.3 kB / 440.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.2852, allocations: 4 kB / 440.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.2852, allocations: 11.94 kB / 440.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2852, allocations: 0 / 440.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2852, allocations: 0 / 440.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004207/0.2856, allocations: 288.1 kB / 440.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.896e-05/0.2857, allocations: 27.77 kB / 440.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.096e-05/0.2857, allocations: 7.938 kB / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.2859, allocations: 15.98 kB / 440.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.395e-05/0.2859, allocations: 23.95 kB / 440.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.286, allocations: 4 kB / 440.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.2861, allocations: 148.6 kB / 440.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2861, allocations: 0 / 440.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002941/0.2864, allocations: 43.89 kB / 440.9 MB, free: 13.52 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.0007736/0.2872, allocations: 0.8271 MB / 441.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003896/0.2875, allocations: 174.7 kB / 441.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.2875, allocations: 0 / 441.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.2877, allocations: 71.89 kB / 442 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003332/0.2881, allocations: 30.86 kB / 442 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002787/0.2908, allocations: 2.236 MB / 444.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.2912, allocations: 0.732 MB / 445 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.2913, allocations: 37.61 kB / 445 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.2914, allocations: 67.41 kB / 445.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2914, allocations: 3.938 kB / 445.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02991/0.3213, allocations: 4.281 MB / 449.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.93/8.251, allocations: 11.2 kB / 449.4 MB, free: 4.949 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00197941 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.70021758088842] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 8.32296268409118 8.33964066 8.059679306 Calling exit ...