Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001371/0.001371, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001752/0.001752, allocations: 207.6 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 230.5 MB / 258.2 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 59.91 kB / 378.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3956/0.3976, allocations: 53.41 MB / 432 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003659/0.4012, allocations: 1.898 MB / 433.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.4027, allocations: 0.6622 MB / 434.5 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.4028, allocations: 7.938 kB / 434.5 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001542/0.403, allocations: 35.66 kB / 434.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001687/0.4031, allocations: 31.67 kB / 434.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003416/0.4035, allocations: 75.8 kB / 434.7 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002682/0.4037, allocations: 171.4 kB / 434.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001975/0.4039, allocations: 48.56 kB / 434.9 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.4041, allocations: 79.64 kB / 435 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.4043, allocations: 87.55 kB / 435.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.4043, allocations: 15.94 kB / 435.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.601e-05/0.4044, allocations: 24 kB / 435.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.763e-05/0.4045, allocations: 47.83 kB / 435.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.992e-05/0.4046, allocations: 83.47 kB / 435.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003221/0.405, allocations: 191.9 kB / 435.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.405, allocations: 0 / 435.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.405, allocations: 0 / 435.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.405, allocations: 0 / 435.4 MB, free: 3.23 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001011/0.406, allocations: 453.5 kB / 435.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.406, allocations: 12.02 kB / 435.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.92e-05/0.406, allocations: 4.469 kB / 435.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.782e-05/0.4061, allocations: 42.75 kB / 435.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.4063, allocations: 32.78 kB / 435.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.4066, allocations: 190.7 kB / 436.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.4066, allocations: 8.656 kB / 436.1 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.183e-05/0.4066, allocations: 16.38 kB / 436.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003653/0.407, allocations: 203.9 kB / 436.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.407, allocations: 7.984 kB / 436.4 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.407, allocations: 4 kB / 436.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.434e-05/0.407, allocations: 8 kB / 436.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003076/0.4073, allocations: 147.8 kB / 436.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.4085, allocations: 0.7575 MB / 437.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003091/0.4088, allocations: 145.1 kB / 437.4 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.4089, allocations: 73.81 kB / 437.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.231e-05/0.409, allocations: 11.92 kB / 437.5 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002678/0.4092, allocations: 141 kB / 437.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/0.4092, allocations: 0 / 437.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005861/0.4098, allocations: 261.7 kB / 437.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.203e-05/0.4099, allocations: 81.11 kB / 438 MB, free: 476 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.4101, allocations: 204.2 kB / 438.2 MB, free: 264 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.4101, allocations: 29.81 kB / 438.2 MB, free: 228 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.4102, allocations: 148.2 kB / 438.3 MB, free: 76 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.448e-05/0.4103, allocations: 51.62 kB / 438.4 MB, free: 24 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.345e-05/0.4104, allocations: 37.7 kB / 438.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.4105, allocations: 338.8 kB / 438.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/0.4107, allocations: 71.95 kB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.4109, allocations: 125.8 kB / 439 MB, free: 15.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.4112, allocations: 202.6 kB / 439.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4112, allocations: 4 kB / 439.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004292/0.4117, allocations: 249.3 kB / 439.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.4117, allocations: 4 kB / 439.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.4117, allocations: 4 kB / 439.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.4117, allocations: 0 / 439.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.4119, allocations: 39.91 kB / 439.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.4119, allocations: 0.7031 kB / 439.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.412, allocations: 32.06 kB / 439.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.4121, allocations: 8 kB / 439.5 MB, free: 14.86 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.0001566/0.4122, allocations: 141.7 kB / 439.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.223e-05/0.4123, allocations: 19.91 kB / 439.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004577/0.4127, allocations: 218.8 kB / 439.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.4127, allocations: 4 kB / 439.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.4127, allocations: 0 / 439.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-05/0.4127, allocations: 7.984 kB / 439.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002956/0.413, allocations: 240.5 kB / 440.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.413, allocations: 0 / 440.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.4132, allocations: 23.98 kB / 440.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.4132, allocations: 0 / 440.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.4132, allocations: 0 / 440.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.4132, allocations: 4 kB / 440.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.4132, allocations: 11.97 kB / 440.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004045/0.4136, allocations: 236.8 kB / 440.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.393e-05/0.4136, allocations: 19.91 kB / 440.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.4136, allocations: 0 / 440.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.4138, allocations: 19.98 kB / 440.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.933e-05/0.4138, allocations: 11.97 kB / 440.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.4139, allocations: 11.98 kB / 440.4 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000156/0.414, allocations: 147.5 kB / 440.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.414, allocations: 3.938 kB / 440.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000272/0.4143, allocations: 39.98 kB / 440.6 MB, free: 13.65 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.0007838/0.4151, allocations: 0.7719 MB / 441.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004105/0.4155, allocations: 167.8 kB / 441.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.4155, allocations: 0 / 441.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.4157, allocations: 79.89 kB / 441.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.416, allocations: 39.91 kB / 441.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003231/0.4193, allocations: 2.19 MB / 443.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000397/0.4196, allocations: 0.7358 MB / 444.6 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001172/0.4198, allocations: 37.61 kB / 444.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.823e-05/0.4199, allocations: 55.42 kB / 444.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4199, allocations: 0 / 444.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0274/0.4473, allocations: 4.404 MB / 449.1 MB, free: 5.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.36, allocations: 11.27 kB / 449.1 MB, free: 5.098 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.026300308993086] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 11.519633483956568 11.538062737 11.129266029 Calling exit ...