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.001469/0.001469, allocations: 116.2 kB / 18.49 MB, free: 4.582 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.001592/0.001592, allocations: 215 kB / 21.46 MB, free: 1.629 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.382/1.382, allocations: 230.6 MB / 254.8 MB, free: 14.87 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.001409/0.001409, allocations: 51.92 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09939/0.1008, allocations: 53.33 MB / 427 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003099/0.1039, allocations: 1.851 MB / 428.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.1052, allocations: 0.7127 MB / 429.6 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.1053, allocations: 7.938 kB / 429.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.1054, allocations: 23.67 kB / 429.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.1056, allocations: 31.73 kB / 429.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.1059, allocations: 95.75 kB / 429.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002427/0.1062, allocations: 175.4 kB / 429.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.1063, allocations: 54.66 kB / 430 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.1065, allocations: 87.69 kB / 430 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.1067, allocations: 91.53 kB / 430.1 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.107e-05/0.1067, allocations: 16 kB / 430.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.673e-05/0.1068, allocations: 24 kB / 430.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-05/0.1069, allocations: 43.83 kB / 430.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.85e-05/0.1069, allocations: 87.42 kB / 430.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003035/0.1073, allocations: 203.1 kB / 430.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1073, allocations: 0 / 430.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1073, allocations: 7.875 kB / 430.5 MB, free: 1.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1073, allocations: 8 kB / 430.5 MB, free: 1.316 MB / 350.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.0009916/0.1083, allocations: 0.5101 MB / 431 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.1083, allocations: 12.03 kB / 431 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.954e-05/0.1083, allocations: 4.188 kB / 431 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.209e-05/0.1084, allocations: 50.73 kB / 431.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.1085, allocations: 36.78 kB / 431.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.1088, allocations: 252.8 kB / 431.4 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.1088, allocations: 8.375 kB / 431.4 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.1089, allocations: 20.38 kB / 431.4 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004017/0.1093, allocations: 213.2 kB / 431.6 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1093, allocations: 3.938 kB / 431.6 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.1093, allocations: 4 kB / 431.6 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/0.1093, allocations: 12 kB / 431.6 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1877/0.2971, allocations: 132.2 kB / 431.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.2981, allocations: 0.7777 MB / 432.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005887/0.2987, allocations: 186.3 kB / 432.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.2988, allocations: 59.64 kB / 432.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.809e-05/0.2988, allocations: 2.5 kB / 432.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.2991, allocations: 144.4 kB / 432.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.2991, allocations: 0.5625 kB / 432.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005486/0.2996, allocations: 250.4 kB / 433.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.394e-05/0.2997, allocations: 81.86 kB / 433.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.2998, allocations: 225.8 kB / 433.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.2998, allocations: 32.27 kB / 433.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.755e-05/0.2999, allocations: 134.4 kB / 433.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.2999, allocations: 43.73 kB / 433.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.383e-05/0.3, allocations: 58.91 kB / 433.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.576e-05/0.3, allocations: 332.7 kB / 434 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.3002, allocations: 67.77 kB / 434.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.3003, allocations: 141.2 kB / 434.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.3006, allocations: 202.8 kB / 434.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.3006, allocations: 4.719 kB / 434.5 MB, free: 9.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003712/0.301, allocations: 253.7 kB / 434.7 MB, free: 9.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.301, allocations: 5.5 kB / 434.7 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.301, allocations: 5.875 kB / 434.7 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.301, allocations: 3.938 kB / 434.7 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.3012, allocations: 38 kB / 434.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.3012, allocations: 6.469 kB / 434.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000167/0.3014, allocations: 31.67 kB / 434.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.3014, allocations: 9.969 kB / 434.8 MB, free: 9.617 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 9.776e-05/0.3015, allocations: 154.4 kB / 435 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.895e-05/0.3015, allocations: 20.33 kB / 435 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002194/0.3017, allocations: 133.2 kB / 435.1 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3017, allocations: 6.828 kB / 435.1 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3018, allocations: 1.031 kB / 435.1 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3018, allocations: 2.672 kB / 435.1 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004685/0.3022, allocations: 476 kB / 435.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3022, allocations: 0 / 435.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.3023, allocations: 22.55 kB / 435.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3023, allocations: 2.125 kB / 435.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.3024, allocations: 6.75 kB / 435.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3024, allocations: 4.125 kB / 435.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3024, allocations: 1.125 kB / 435.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003461/0.3027, allocations: 295 kB / 435.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.174e-05/0.3027, allocations: 98.78 kB / 436 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.893e-05/0.3028, allocations: 3.078 kB / 436 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.3029, allocations: 16.61 kB / 436 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.427e-05/0.303, allocations: 28.77 kB / 436 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.303, allocations: 4.438 kB / 436 MB, free: 8.887 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.05e-05/0.3031, allocations: 148.8 kB / 436.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3031, allocations: 0 / 436.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002874/0.3034, allocations: 46.83 kB / 436.2 MB, free: 8.805 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.0005283/0.3039, allocations: 0.8263 MB / 437.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003607/0.3043, allocations: 174 kB / 437.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3043, allocations: 0 / 437.2 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.3045, allocations: 74.25 kB / 437.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.3048, allocations: 38.56 kB / 437.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.307, allocations: 2.237 MB / 439.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/0.3071, allocations: 0.7347 MB / 440.3 MB, free: 5.836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.639e-05/0.3072, allocations: 36.66 kB / 440.4 MB, free: 5.832 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.439e-05/0.3073, allocations: 63.33 kB / 440.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3073, allocations: 0 / 440.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02042/0.3277, allocations: 4.188 MB / 444.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.16/8.488, allocations: 6.328 kB / 444.6 MB, free: 5.223 MB / 350.1 MB " [Timeout remaining time 651] (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: 10.720929784991313] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 8.616495084017515 8.642195398 8.529936559 Calling exit ...