Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.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.001443/0.001443, allocations: 110.6 kB / 19.17 MB, free: 3.871 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.001617/0.001617, allocations: 203.8 kB / 22.12 MB, free: 0.9297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 207.6 MB / 232.5 MB, free: 3.91 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 63.84 kB / 343 MB, free: 9.992 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08504/0.0867, allocations: 49.12 MB / 392.1 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003078/0.08978, allocations: 1.864 MB / 394 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.09093, allocations: 0.6317 MB / 394.6 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.09103, allocations: 7.938 kB / 394.6 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.09115, allocations: 27.72 kB / 394.6 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.09129, allocations: 43.59 kB / 394.7 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002571/0.09155, allocations: 63.86 kB / 394.7 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002344/0.09178, allocations: 167.4 kB / 394.9 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.09193, allocations: 61.44 kB / 395 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.09205, allocations: 75.64 kB / 395 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.0922, allocations: 75.62 kB / 395.1 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/0.09223, allocations: 12 kB / 395.1 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.881e-05/0.0923, allocations: 27.98 kB / 395.2 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.311e-05/0.09238, allocations: 51.7 kB / 395.2 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.704e-05/0.09247, allocations: 79.53 kB / 395.3 MB, free: 5.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002735/0.09274, allocations: 191 kB / 395.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.09275, allocations: 0 / 395.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.09275, allocations: 0 / 395.5 MB, free: 5.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.09276, allocations: 0 / 395.5 MB, free: 5.32 MB / 318.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.0009141/0.09367, allocations: 0.5102 MB / 396 MB, free: 4.762 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.09371, allocations: 12.03 kB / 396 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.314e-05/0.09372, allocations: 4.469 kB / 396 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.735e-05/0.09377, allocations: 46.73 kB / 396 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.208e-05/0.09382, allocations: 28.8 kB / 396.1 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.09411, allocations: 243.8 kB / 396.3 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.09412, allocations: 12.66 kB / 396.3 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/0.09416, allocations: 16.38 kB / 396.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.09453, allocations: 198.9 kB / 396.5 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.09454, allocations: 0 / 396.5 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.09456, allocations: 4 kB / 396.5 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.326e-05/0.09458, allocations: 11.94 kB / 396.5 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000306/0.09489, allocations: 143.8 kB / 396.7 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.09598, allocations: 0.778 MB / 397.5 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/0.0963, allocations: 149 kB / 397.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.09645, allocations: 69.81 kB / 397.7 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-05/0.09649, allocations: 12.14 kB / 397.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000246/0.09674, allocations: 149 kB / 397.8 MB, free: 2.738 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.09674, allocations: 0 / 397.8 MB, free: 2.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005778/0.09731, allocations: 258.1 kB / 398.1 MB, free: 2.48 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.09737, allocations: 81.11 kB / 398.2 MB, free: 2.383 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.09756, allocations: 202.9 kB / 398.4 MB, free: 2.176 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.09759, allocations: 33.7 kB / 398.4 MB, free: 2.137 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.09769, allocations: 140.3 kB / 398.5 MB, free: 1.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.142e-05/0.09773, allocations: 43.64 kB / 398.6 MB, free: 1.953 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.085e-05/0.0978, allocations: 45.7 kB / 398.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.09794, allocations: 330.8 kB / 398.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.0981, allocations: 71.95 kB / 399 MB, free: 1.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.0983, allocations: 126.7 kB / 399.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003376/0.09863, allocations: 214.7 kB / 399.4 MB, free: 1.117 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.09864, allocations: 0 / 399.4 MB, free: 1.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004292/0.09906, allocations: 241.4 kB / 399.6 MB, free: 0.875 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.09908, allocations: 8 kB / 399.6 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.09909, allocations: 0 / 399.6 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.0991, allocations: 7.938 kB / 399.6 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.09926, allocations: 31.98 kB / 399.6 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.09927, allocations: 4 kB / 399.6 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001588/0.09943, allocations: 35.86 kB / 399.7 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.09944, allocations: 11.94 kB / 399.7 MB, free: 0.7773 MB / 318.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.0001313/0.09958, allocations: 149.9 kB / 399.8 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.481e-05/0.09961, allocations: 15.91 kB / 399.8 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004411/0.1001, allocations: 218.8 kB / 400.1 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.1001, allocations: 7.984 kB / 400.1 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.1001, allocations: 0 / 400.1 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1001, allocations: 0 / 400.1 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002999/0.1004, allocations: 273.4 kB / 400.3 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1004, allocations: 4 kB / 400.3 MB, free: 56 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.1005, allocations: 23.92 kB / 400.4 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1005, allocations: 0 / 400.4 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.1005, allocations: 8 kB / 400.4 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.1005, allocations: 0 / 400.4 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1005, allocations: 0 / 400.4 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004274/0.1009, allocations: 237.6 kB / 400.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.829e-05/0.101, allocations: 92.97 kB / 400.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.101, allocations: 7.984 kB / 400.7 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.1012, allocations: 15.98 kB / 400.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.59e-05/0.1012, allocations: 15.97 kB / 400.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.1012, allocations: 4 kB / 400.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001234/0.1014, allocations: 148.4 kB / 400.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1014, allocations: 0 / 400.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.1016, allocations: 39.94 kB / 400.9 MB, free: 15.43 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: 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.0007296/0.1023, allocations: 0.777 MB / 401.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003796/0.1027, allocations: 171.8 kB / 401.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1027, allocations: 0 / 401.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001702/0.1029, allocations: 71.89 kB / 401.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.1032, allocations: 44.58 kB / 402 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.1058, allocations: 2.189 MB / 404.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.1062, allocations: 0.7319 MB / 404.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.1063, allocations: 37.52 kB / 404.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.559e-05/0.1064, allocations: 63.41 kB / 405 MB, free: 11.16 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1064, allocations: 4 kB / 405 MB, free: 11.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02012/0.1265, allocations: 4.162 MB / 409.2 MB, free: 6.945 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.953/8.079, allocations: 12 kB / 409.2 MB, free: 6.934 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.281817105947994] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 8.201945075008553 8.219933551 8.123671627 Calling exit ...