Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.001168/0.001168, allocations: 116.6 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.001155/0.001155, allocations: 189 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.35/1.35, allocations: 225.6 MB / 249.8 MB, free: 3.734 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.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 43.94 kB / 366.3 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09805/0.09947, allocations: 52.15 MB / 418.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003154/0.1026, allocations: 1.865 MB / 420.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.1037, allocations: 0.5882 MB / 420.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.901e-05/0.1038, allocations: 7.938 kB / 420.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.104, allocations: 27.66 kB / 421 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001479/0.1041, allocations: 43.59 kB / 421 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.1044, allocations: 63.88 kB / 421.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002457/0.1047, allocations: 171.5 kB / 421.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.1048, allocations: 45.66 kB / 421.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.105, allocations: 79.64 kB / 421.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.1051, allocations: 75.62 kB / 421.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.865e-05/0.1051, allocations: 12 kB / 421.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.108e-05/0.1052, allocations: 19.98 kB / 421.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.88e-05/0.1053, allocations: 47.78 kB / 421.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.1054, allocations: 83.52 kB / 421.6 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002909/0.1057, allocations: 195 kB / 421.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1057, allocations: 0 / 421.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1057, allocations: 0 / 421.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1057, allocations: 0 / 421.8 MB, free: 9.379 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001023/0.1068, allocations: 0.5065 MB / 422.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.1068, allocations: 12.03 kB / 422.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.631e-05/0.1068, allocations: 4.469 kB / 422.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.888e-05/0.1069, allocations: 58.61 kB / 422.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.409e-05/0.1069, allocations: 20.8 kB / 422.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/0.1073, allocations: 239.9 kB / 422.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.1073, allocations: 16.16 kB / 422.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.035e-05/0.1073, allocations: 16 kB / 422.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003997/0.1077, allocations: 206.9 kB / 422.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.1077, allocations: 0 / 422.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.1077, allocations: 4 kB / 422.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.265e-05/0.1078, allocations: 7.938 kB / 422.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000313/0.1081, allocations: 143.8 kB / 423 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.1093, allocations: 0.7779 MB / 423.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003375/0.1096, allocations: 161 kB / 423.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.1098, allocations: 69.81 kB / 424 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.1098, allocations: 0 / 424 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002542/0.1101, allocations: 141.2 kB / 424.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.813e-06/0.1101, allocations: 4 kB / 424.2 MB, free: 6.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005708/0.1106, allocations: 258.1 kB / 424.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.1107, allocations: 81.11 kB / 424.5 MB, free: 6.438 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.1109, allocations: 203 kB / 424.7 MB, free: 6.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.1109, allocations: 29.7 kB / 424.7 MB, free: 6.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.939e-05/0.111, allocations: 144.3 kB / 424.9 MB, free: 6.047 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.402e-05/0.111, allocations: 51.58 kB / 424.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.987e-05/0.1111, allocations: 45.7 kB / 424.9 MB, free: 5.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1113, allocations: 330.8 kB / 425.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.1114, allocations: 71.89 kB / 425.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002591/0.1117, allocations: 126.8 kB / 425.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003661/0.112, allocations: 210.7 kB / 425.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.112, allocations: 0 / 425.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004303/0.1125, allocations: 253.2 kB / 425.9 MB, free: 4.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1125, allocations: 10.33 kB / 425.9 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1125, allocations: 4 kB / 425.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.1125, allocations: 0 / 425.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.1127, allocations: 36.11 kB / 426 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.1127, allocations: 4 kB / 426 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.1128, allocations: 35.91 kB / 426 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.1128, allocations: 11.94 kB / 426 MB, free: 4.812 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001369/0.113, allocations: 142.3 kB / 426.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/0.113, allocations: 19.91 kB / 426.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004434/0.1135, allocations: 214.9 kB / 426.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1135, allocations: 0 / 426.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1135, allocations: 4 kB / 426.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.1135, allocations: 3.938 kB / 426.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003277/0.1138, allocations: 265.5 kB / 426.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1138, allocations: 4 kB / 426.7 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.1139, allocations: 23.97 kB / 426.7 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1139, allocations: 4 kB / 426.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.1139, allocations: 0 / 426.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1139, allocations: 4 kB / 426.7 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1139, allocations: 4 kB / 426.7 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003943/0.1143, allocations: 227.8 kB / 426.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.1144, allocations: 96.95 kB / 427 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.1144, allocations: 4 kB / 427 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.1145, allocations: 19.97 kB / 427 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.214e-05/0.1146, allocations: 19.92 kB / 427 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.1146, allocations: 11.98 kB / 427.1 MB, free: 3.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000122/0.1147, allocations: 144.4 kB / 427.2 MB, free: 3.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1147, allocations: 0 / 427.2 MB, free: 3.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002424/0.115, allocations: 35.95 kB / 427.2 MB, free: 3.484 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007428/0.1157, allocations: 0.7653 MB / 428 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003757/0.1161, allocations: 171.8 kB / 428.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1161, allocations: 0 / 428.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.1163, allocations: 76.28 kB / 428.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.1166, allocations: 56.81 kB / 428.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.1191, allocations: 2.185 MB / 430.5 MB, free: 72 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/0.1195, allocations: 0.728 MB / 431.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.667e-05/0.1196, allocations: 37.52 kB / 431.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.378e-05/0.1197, allocations: 63.41 kB / 431.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1197, allocations: 0 / 431.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02198/0.1417, allocations: 4.167 MB / 435.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.861/8.002, allocations: 10.56 kB / 435.5 MB, free: 11.15 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.43946467502974] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 8.12699227099074 8.377557823 8.041212032 Calling exit ...