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.001433/0.001433, allocations: 117 kB / 18.49 MB, free: 4.566 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.001789/0.001789, allocations: 216.7 kB / 21.46 MB, free: 1.613 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.678/1.678, allocations: 230.4 MB / 254.7 MB, free: 15.03 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.00209/0.00209, allocations: 67.84 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1361, allocations: 53.38 MB / 427.1 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00357/0.1397, allocations: 1.896 MB / 429 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.141, allocations: 0.6544 MB / 429.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.1411, allocations: 3.938 kB / 429.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001657/0.1413, allocations: 27.72 kB / 429.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.1415, allocations: 35.66 kB / 429.7 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.1418, allocations: 79.78 kB / 429.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000275/0.1421, allocations: 171.4 kB / 429.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.1423, allocations: 56.23 kB / 430 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.1425, allocations: 79.62 kB / 430.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.1426, allocations: 79.62 kB / 430.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.1427, allocations: 15.94 kB / 430.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.644e-05/0.1427, allocations: 27.98 kB / 430.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.1429, allocations: 43.83 kB / 430.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.781e-05/0.143, allocations: 79.48 kB / 430.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003/0.1433, allocations: 203 kB / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1433, allocations: 0 / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1433, allocations: 0 / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1433, allocations: 4 kB / 430.5 MB, free: 1.172 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.000946/0.1442, allocations: 0.5064 MB / 431 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1443, allocations: 12.03 kB / 431 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.166e-05/0.1443, allocations: 8.469 kB / 431 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.332e-05/0.1443, allocations: 46.73 kB / 431.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001589/0.1445, allocations: 36.78 kB / 431.1 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002977/0.1448, allocations: 240 kB / 431.3 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.1448, allocations: 8.656 kB / 431.3 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.1448, allocations: 16.38 kB / 431.4 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003956/0.1452, allocations: 203.4 kB / 431.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1453, allocations: 4 kB / 431.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.1453, allocations: 4 kB / 431.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.1453, allocations: 4 kB / 431.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003226/0.1456, allocations: 147.8 kB / 431.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.1468, allocations: 0.7741 MB / 432.5 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.1471, allocations: 161 kB / 432.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.1473, allocations: 73.97 kB / 432.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.456e-05/0.1473, allocations: 3.984 kB / 432.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002665/0.1476, allocations: 143 kB / 432.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.1476, allocations: 0 / 432.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.000607/0.1482, allocations: 269.5 kB / 433.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.574e-05/0.1483, allocations: 77.11 kB / 433.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002218/0.1485, allocations: 207.1 kB / 433.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.1485, allocations: 29.7 kB / 433.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.1486, allocations: 144.3 kB / 433.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.77e-05/0.1487, allocations: 43.64 kB / 433.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.221e-05/0.1487, allocations: 41.7 kB / 433.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1489, allocations: 334.8 kB / 434 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.1491, allocations: 67.95 kB / 434.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.1492, allocations: 126.8 kB / 434.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003401/0.1496, allocations: 210.6 kB / 434.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1496, allocations: 0 / 434.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004132/0.15, allocations: 245.3 kB / 434.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.15, allocations: 8 kB / 434.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.15, allocations: 0 / 434.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.15, allocations: 4 kB / 434.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.1502, allocations: 31.92 kB / 434.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.1502, allocations: 4 kB / 434.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001545/0.1504, allocations: 36.05 kB / 434.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.1504, allocations: 8 kB / 434.7 MB, free: 12.62 MB / 366.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.0001682/0.1506, allocations: 145.7 kB / 434.9 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.233e-05/0.1506, allocations: 19.89 kB / 434.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004498/0.151, allocations: 223.5 kB / 435.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.151, allocations: 112 / 435.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.151, allocations: 7.938 kB / 435.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1511, allocations: 0 / 435.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002873/0.1513, allocations: 277.4 kB / 435.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1513, allocations: 0 / 435.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.1515, allocations: 23.92 kB / 435.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1515, allocations: 0 / 435.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.1515, allocations: 4 kB / 435.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1515, allocations: 0 / 435.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1515, allocations: 0 / 435.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004065/0.1519, allocations: 241.8 kB / 435.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.039e-05/0.152, allocations: 89.02 kB / 435.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.013e-05/0.152, allocations: 11.92 kB / 435.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.1521, allocations: 15.98 kB / 435.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.517e-05/0.1522, allocations: 19.97 kB / 435.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.027e-05/0.1522, allocations: 4 kB / 435.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001358/0.1523, allocations: 148.6 kB / 435.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1523, allocations: 0 / 435.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002558/0.1526, allocations: 43.98 kB / 436 MB, free: 11.27 MB / 366.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.0007613/0.1533, allocations: 0.771 MB / 436.7 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003995/0.1537, allocations: 163.8 kB / 436.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1537, allocations: 0 / 436.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.1539, allocations: 75.95 kB / 437 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.1542, allocations: 40.28 kB / 437 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/0.157, allocations: 2.189 MB / 439.2 MB, free: 7.867 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.1574, allocations: 0.7358 MB / 439.9 MB, free: 7.105 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001126/0.1575, allocations: 41.52 kB / 440 MB, free: 7.066 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.609e-05/0.1576, allocations: 59.42 kB / 440 MB, free: 7.012 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1576, allocations: 0 / 440 MB, free: 7.012 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.1795, allocations: 4.2 MB / 444.2 MB, free: 2.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.42/8.599, allocations: 15.92 kB / 444.2 MB, free: 2.883 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.558545979962219] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 8.722192888963036 8.965242984 8.819848294 Calling exit ...