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.001218/0.001218, allocations: 108.6 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.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.00127/0.00127, allocations: 192.8 kB / 24.5 MB, free: 4.02 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: 13.04 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.001524/0.001524, allocations: 43.94 kB / 371.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2513, allocations: 52.18 MB / 423.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003055/0.2543, allocations: 1.855 MB / 425.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.2554, allocations: 0.6232 MB / 425.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.915e-05/0.2555, allocations: 7.938 kB / 425.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.2556, allocations: 31.67 kB / 425.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.2558, allocations: 35.66 kB / 426 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.2561, allocations: 83.84 kB / 426 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002423/0.2563, allocations: 175.4 kB / 426.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.2565, allocations: 50.94 kB / 426.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.2566, allocations: 79.69 kB / 426.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.2567, allocations: 87.59 kB / 426.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.045e-05/0.2568, allocations: 19.94 kB / 426.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.446e-05/0.2568, allocations: 20 kB / 426.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.728e-05/0.2569, allocations: 51.78 kB / 426.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.206e-05/0.257, allocations: 75.53 kB / 426.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002947/0.2573, allocations: 207.8 kB / 426.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2573, allocations: 4 kB / 426.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2573, allocations: 0 / 426.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.2573, allocations: 0 / 426.8 MB, free: 11.2 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.2582, allocations: 445.2 kB / 427.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.2582, allocations: 8.031 kB / 427.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.566e-05/0.2582, allocations: 4.188 kB / 427.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.56e-05/0.2583, allocations: 62.67 kB / 427.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.953e-05/0.2583, allocations: 20.8 kB / 427.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.2587, allocations: 186.1 kB / 427.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.2587, allocations: 19.69 kB / 427.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.586e-05/0.2587, allocations: 20 kB / 427.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004304/0.2592, allocations: 202.2 kB / 427.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.2592, allocations: 0 / 427.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.2592, allocations: 8 kB / 427.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.2592, allocations: 4 kB / 427.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003366/0.2596, allocations: 139.8 kB / 427.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.2606, allocations: 0.7535 MB / 428.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006138/0.2612, allocations: 186.6 kB / 428.8 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.2614, allocations: 64.83 kB / 428.9 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.2614, allocations: 0 / 428.9 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002697/0.2617, allocations: 152.5 kB / 429 MB, free: 8.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.052e-06/0.2617, allocations: 0 / 429 MB, free: 8.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005817/0.2623, allocations: 249.4 kB / 429.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.2623, allocations: 85.09 kB / 429.4 MB, free: 8.438 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.2626, allocations: 211 kB / 429.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.504e-05/0.2626, allocations: 37.69 kB / 429.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.372e-05/0.2627, allocations: 136.4 kB / 429.7 MB, free: 8.043 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.999e-05/0.2627, allocations: 43.72 kB / 429.8 MB, free: 8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.925e-05/0.2628, allocations: 61.97 kB / 429.8 MB, free: 7.934 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.263, allocations: 334.8 kB / 430.2 MB, free: 7.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.2632, allocations: 63.95 kB / 430.2 MB, free: 7.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/0.2634, allocations: 148.5 kB / 430.4 MB, free: 7.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003707/0.2638, allocations: 212.3 kB / 430.6 MB, free: 7.121 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.2638, allocations: 4 kB / 430.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000451/0.2642, allocations: 241.4 kB / 430.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.2642, allocations: 4 kB / 430.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.2642, allocations: 7.984 kB / 430.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.2643, allocations: 7.938 kB / 430.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.2644, allocations: 43.91 kB / 430.9 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.2644, allocations: 4 kB / 430.9 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001672/0.2646, allocations: 35.81 kB / 430.9 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.2646, allocations: 8 kB / 430.9 MB, free: 6.766 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.0001416/0.2648, allocations: 151.9 kB / 431.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.787e-05/0.2648, allocations: 15.91 kB / 431.1 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002555/0.2651, allocations: 135 kB / 431.2 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.2651, allocations: 7.938 kB / 431.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2651, allocations: 0 / 431.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.2651, allocations: 0 / 431.2 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006724/0.2657, allocations: 453.3 kB / 431.7 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.2657, allocations: 3.938 kB / 431.7 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.2659, allocations: 23.92 kB / 431.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2659, allocations: 0 / 431.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.2659, allocations: 3.984 kB / 431.7 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.2659, allocations: 4 kB / 431.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2659, allocations: 64 / 431.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004383/0.2663, allocations: 292.1 kB / 432 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.761e-05/0.2664, allocations: 15.84 kB / 432 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.2664, allocations: 15.92 kB / 432 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.2666, allocations: 11.98 kB / 432 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.915e-05/0.2666, allocations: 24.16 kB / 432.1 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.2666, allocations: 7.984 kB / 432.1 MB, free: 5.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001355/0.2668, allocations: 148.5 kB / 432.2 MB, free: 5.395 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2668, allocations: 4 kB / 432.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002937/0.2671, allocations: 43.89 kB / 432.3 MB, free: 5.348 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.0008265/0.2679, allocations: 0.8307 MB / 433.1 MB, free: 4.488 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003986/0.2683, allocations: 155.8 kB / 433.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2683, allocations: 0 / 433.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001803/0.2685, allocations: 75.89 kB / 433.3 MB, free: 4.262 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.2688, allocations: 28.48 kB / 433.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003134/0.272, allocations: 2.24 MB / 435.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004225/0.2724, allocations: 0.732 MB / 436.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.747e-05/0.2725, allocations: 29.62 kB / 436.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.2726, allocations: 67.41 kB / 436.4 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2726, allocations: 0 / 436.4 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02639/0.299, allocations: 4.386 MB / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.09, allocations: 18.03 kB / 440.8 MB, free: 12.74 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.35554246098036] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 11.264314040949102 11.290294693 11.028401433 Calling exit ...