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.001211/0.001211, allocations: 115.7 kB / 18.49 MB, free: 4.566 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.00159/0.00159, allocations: 190.7 kB / 21.43 MB, free: 1.641 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.373/1.373, allocations: 225.6 MB / 249.8 MB, free: 3.609 MB / 190.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.001509/0.001509, allocations: 51.94 kB / 366.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09832/0.09983, allocations: 52.14 MB / 418.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003018/0.1029, allocations: 1.845 MB / 420.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.1041, allocations: 0.6193 MB / 420.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.48e-05/0.1042, allocations: 4 kB / 420.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.1043, allocations: 39.59 kB / 421 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.1045, allocations: 35.72 kB / 421 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.1048, allocations: 83.78 kB / 421.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002379/0.105, allocations: 171.5 kB / 421.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001797/0.1052, allocations: 54.66 kB / 421.3 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.1053, allocations: 83.62 kB / 421.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001469/0.1054, allocations: 87.59 kB / 421.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/0.1055, allocations: 12 kB / 421.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.604e-05/0.1055, allocations: 24 kB / 421.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.614e-05/0.1056, allocations: 43.84 kB / 421.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.148e-05/0.1057, allocations: 87.41 kB / 421.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002761/0.106, allocations: 203 kB / 421.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.106, allocations: 0 / 421.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.106, allocations: 0 / 421.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.106, allocations: 3.984 kB / 421.9 MB, free: 9.199 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.0009247/0.1069, allocations: 0.5062 MB / 422.4 MB, free: 8.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.107, allocations: 12.03 kB / 422.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.67e-05/0.107, allocations: 4.188 kB / 422.4 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.593e-05/0.107, allocations: 46.73 kB / 422.4 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.314e-05/0.1071, allocations: 28.78 kB / 422.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/0.1074, allocations: 248.5 kB / 422.7 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.1074, allocations: 19.69 kB / 422.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.681e-05/0.1074, allocations: 16 kB / 422.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003927/0.1078, allocations: 209.9 kB / 422.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.1078, allocations: 0 / 422.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.1078, allocations: 11.94 kB / 422.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.447e-05/0.1079, allocations: 11.98 kB / 423 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003444/0.1082, allocations: 139.8 kB / 423.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.1093, allocations: 0.7817 MB / 423.9 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006326/0.1099, allocations: 186.6 kB / 424.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.1101, allocations: 56.81 kB / 424.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.1101, allocations: 7.984 kB / 424.1 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003224/0.1104, allocations: 151.4 kB / 424.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.1104, allocations: 0 / 424.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006198/0.1111, allocations: 249.2 kB / 424.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.607e-05/0.1111, allocations: 81.11 kB / 424.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002306/0.1114, allocations: 226.9 kB / 424.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.1114, allocations: 29.7 kB / 424.8 MB, free: 5.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.1115, allocations: 136.4 kB / 425 MB, free: 5.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.097e-05/0.1115, allocations: 39.72 kB / 425 MB, free: 5.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.128e-05/0.1116, allocations: 65.64 kB / 425.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1118, allocations: 326.8 kB / 425.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.112, allocations: 67.95 kB / 425.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.1122, allocations: 145.1 kB / 425.6 MB, free: 5.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/0.1125, allocations: 208.4 kB / 425.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1125, allocations: 0 / 425.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004915/0.113, allocations: 249.5 kB / 426.1 MB, free: 4.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.1131, allocations: 8 kB / 426.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1131, allocations: 64 / 426.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.661e-05/0.1131, allocations: 11.94 kB / 426.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.1133, allocations: 43.91 kB / 426.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.1133, allocations: 4.25 kB / 426.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.1134, allocations: 35.77 kB / 426.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.1135, allocations: 12 kB / 426.2 MB, free: 4.551 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.0001606/0.1136, allocations: 148 kB / 426.3 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.383e-05/0.1137, allocations: 19.91 kB / 426.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002576/0.1139, allocations: 131 kB / 426.5 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.1139, allocations: 7.938 kB / 426.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1139, allocations: 4.469 kB / 426.5 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1139, allocations: 3.984 kB / 426.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006373/0.1146, allocations: 478.2 kB / 426.9 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1146, allocations: 3.938 kB / 426.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.1147, allocations: 23.98 kB / 427 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1147, allocations: 0 / 427 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.1147, allocations: 4 kB / 427 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1147, allocations: 3.984 kB / 427 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1147, allocations: 4 kB / 427 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004447/0.1152, allocations: 288.1 kB / 427.3 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.525e-05/0.1152, allocations: 96.95 kB / 427.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.1153, allocations: 4 kB / 427.4 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.1154, allocations: 15.97 kB / 427.4 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.427e-05/0.1155, allocations: 23.98 kB / 427.4 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.1155, allocations: 15.92 kB / 427.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001291/0.1157, allocations: 144.4 kB / 427.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1157, allocations: 0 / 427.6 MB, free: 3.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002999/0.116, allocations: 43.89 kB / 427.6 MB, free: 3.008 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.0008138/0.1168, allocations: 0.8379 MB / 428.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004094/0.1172, allocations: 162.2 kB / 428.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1172, allocations: 0.5 kB / 428.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.1174, allocations: 80.02 kB / 428.7 MB, free: 1.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.1177, allocations: 32.66 kB / 428.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002815/0.1205, allocations: 2.233 MB / 430.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.1209, allocations: 0.7358 MB / 431.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.396e-05/0.121, allocations: 29.53 kB / 431.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.1211, allocations: 71.41 kB / 431.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1211, allocations: 3.938 kB / 431.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02054/0.1416, allocations: 4.152 MB / 435.9 MB, free: 10.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.014/8.155, allocations: 8.5 kB / 435.9 MB, free: 10.57 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.594634004984982] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch1.y', 'triggeredAdd.y'] 8.282248927047476 8.501174458 8.392362121 Calling exit ...