Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.001677/0.001677, allocations: 116.9 kB / 18.49 MB, free: 4.559 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.00239/0.00239, allocations: 212.7 kB / 21.46 MB, free: 1.605 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.701/1.701, allocations: 230.5 MB / 254.7 MB, free: 15.18 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.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002117/0.002117, allocations: 63.89 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1103, allocations: 53.38 MB / 427.1 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003523/0.1138, allocations: 1.906 MB / 429 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.1159, allocations: 1.285 MB / 430.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.1161, allocations: 11.88 kB / 430.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003081/0.1164, allocations: 67.64 kB / 430.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003399/0.1167, allocations: 135.4 kB / 430.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006309/0.1173, allocations: 225.9 kB / 430.7 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002509/0.1176, allocations: 179.5 kB / 430.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.973e-05/0.1177, allocations: 17.55 kB / 430.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.1178, allocations: 87.56 kB / 431 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.1179, allocations: 79.67 kB / 431 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.118, allocations: 8 kB / 431 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001501/0.1181, allocations: 75.94 kB / 431.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.514e-05/0.1182, allocations: 51.72 kB / 431.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.805e-05/0.1183, allocations: 75.48 kB / 431.2 MB, free: 440 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000346/0.1186, allocations: 250.9 kB / 431.5 MB, free: 188 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1186, allocations: 4 kB / 431.5 MB, free: 184 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1186, allocations: 0 / 431.5 MB, free: 184 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.1186, allocations: 0 / 431.5 MB, free: 184 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007546/0.1194, allocations: 0.5386 MB / 432 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1194, allocations: 12.03 kB / 432 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.089e-05/0.1194, allocations: 192 / 432 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.856e-05/0.1195, allocations: 42.73 kB / 432.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.929e-05/0.1195, allocations: 24.8 kB / 432.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004043/0.1199, allocations: 291.8 kB / 432.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.12, allocations: 4.375 kB / 432.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.291e-05/0.12, allocations: 8.375 kB / 432.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000341/0.1203, allocations: 163.5 kB / 432.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.1203, allocations: 0 / 432.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.1203, allocations: 0 / 432.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.1204, allocations: 4 kB / 432.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001213/0.1205, allocations: 35.97 kB / 432.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005342/0.121, allocations: 394.3 kB / 433 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002653/0.1213, allocations: 107.9 kB / 433.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.1214, allocations: 54.55 kB / 433.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.1214, allocations: 0 / 433.1 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001811/0.1216, allocations: 75.33 kB / 433.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.1216, allocations: 0 / 433.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004194/0.122, allocations: 157.4 kB / 433.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.861e-05/0.1221, allocations: 162.4 kB / 433.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000367/0.1225, allocations: 342.6 kB / 433.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.1225, allocations: 29.7 kB / 433.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.811e-05/0.1226, allocations: 128.1 kB / 434 MB, free: 13.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.903e-05/0.1226, allocations: 19.89 kB / 434 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.603e-05/0.1227, allocations: 29.72 kB / 434.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1228, allocations: 338.7 kB / 434.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.714e-05/0.1229, allocations: 27.98 kB / 434.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.123, allocations: 86.84 kB / 434.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.1232, allocations: 88.47 kB / 434.6 MB, free: 12.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1232, allocations: 0 / 434.6 MB, free: 12.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000242/0.1234, allocations: 125.4 kB / 434.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1234, allocations: 5.875 kB / 434.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.1234, allocations: 48 / 434.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.1235, allocations: 7.984 kB / 434.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.1236, allocations: 20.11 kB / 434.8 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.1236, allocations: 7.938 kB / 434.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.805e-05/0.1237, allocations: 11.94 kB / 434.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.1237, allocations: 7.938 kB / 434.8 MB, free: 12.53 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001433/0.1238, allocations: 153.8 kB / 434.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-05/0.1239, allocations: 73.44 kB / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.678e-05/0.124, allocations: 25.72 kB / 435 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.124, allocations: 0 / 435 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.124, allocations: 8.047 kB / 435 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.124, allocations: 0 / 435 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.1242, allocations: 249.6 kB / 435.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1242, allocations: 3.938 kB / 435.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.811e-05/0.1243, allocations: 11.98 kB / 435.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1243, allocations: 0 / 435.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.978e-06/0.1243, allocations: 4 kB / 435.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1243, allocations: 0 / 435.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1243, allocations: 4 kB / 435.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.1246, allocations: 166.6 kB / 435.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.1247, allocations: 120.9 kB / 435.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.1247, allocations: 4 kB / 435.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.89e-05/0.1248, allocations: 4 kB / 435.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.777e-05/0.1249, allocations: 11.98 kB / 435.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.1249, allocations: 4 kB / 435.6 MB, free: 11.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002536/0.1251, allocations: 253.9 kB / 435.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1251, allocations: 3.938 kB / 435.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002745/0.1254, allocations: 35.94 kB / 435.9 MB, free: 11.31 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.002015/0.1274, allocations: 1.016 MB / 436.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002361/0.1277, allocations: 67.91 kB / 437 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1277, allocations: 3.938 kB / 437 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.482e-05/0.1277, allocations: 27.92 kB / 437 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003971/0.1281, allocations: 56.88 kB / 437.1 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.1307, allocations: 2.228 MB / 439.3 MB, free: 7.891 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.1311, allocations: 0.7397 MB / 440 MB, free: 7.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.684e-05/0.1312, allocations: 37.5 kB / 440.1 MB, free: 7.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.639e-05/0.1313, allocations: 55.42 kB / 440.1 MB, free: 7.035 MB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1313, allocations: 4 kB / 440.1 MB, free: 7.031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02341/0.1547, allocations: 5.378 MB / 445.5 MB, free: 1.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.275/8.429, allocations: 8.047 kB / 445.5 MB, free: 1.754 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.33361882797908] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'subSample1.y'] 8.608441598014906 8.763235683 8.642571243 Calling exit ...