Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.001297/0.001297, allocations: 117.8 kB / 18.5 MB, free: 4.434 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.001339/0.001339, allocations: 216.9 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.424/1.424, allocations: 230.4 MB / 254.7 MB, free: 15.21 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.BackSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 71.83 kB / 373.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1072, allocations: 53.32 MB / 426.9 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003726/0.1109, allocations: 1.932 MB / 428.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.1132, allocations: 1.325 MB / 430.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.1133, allocations: 3.938 kB / 430.1 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00032/0.1137, allocations: 71.66 kB / 430.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003877/0.114, allocations: 135.4 kB / 430.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007417/0.1148, allocations: 227.3 kB / 430.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002597/0.115, allocations: 191.4 kB / 430.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.1152, allocations: 21.67 kB / 430.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.1153, allocations: 83.69 kB / 430.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.1154, allocations: 91.59 kB / 430.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.194e-05/0.1154, allocations: 8 kB / 431 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.1156, allocations: 71.89 kB / 431 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.151e-05/0.1157, allocations: 55.83 kB / 431.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.512e-05/0.1157, allocations: 87.41 kB / 431.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003507/0.1161, allocations: 254.8 kB / 431.4 MB, free: 340 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1161, allocations: 0 / 431.4 MB, free: 340 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1161, allocations: 0 / 431.4 MB, free: 340 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.1161, allocations: 0 / 431.4 MB, free: 340 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007663/0.1169, allocations: 0.5542 MB / 432 MB, free: 15.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.1169, allocations: 12.03 kB / 432 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.548e-05/0.117, allocations: 42.73 kB / 432 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.445e-05/0.117, allocations: 24.8 kB / 432 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004809/0.1175, allocations: 311.7 kB / 432.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.1175, allocations: 4.375 kB / 432.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.503e-05/0.1175, allocations: 15.94 kB / 432.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003956/0.1179, allocations: 180.3 kB / 432.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.1179, allocations: 0 / 432.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.118, allocations: 0 / 432.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.118, allocations: 8 kB / 432.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.1181, allocations: 43.91 kB / 432.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005784/0.1187, allocations: 387.3 kB / 433 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002852/0.119, allocations: 146.5 kB / 433.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.1191, allocations: 47.42 kB / 433.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.1191, allocations: 20.05 kB / 433.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001863/0.1193, allocations: 71.33 kB / 433.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.442e-06/0.1193, allocations: 0 / 433.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004258/0.1197, allocations: 169.8 kB / 433.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/0.1199, allocations: 195.9 kB / 433.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000385/0.1203, allocations: 346.9 kB / 434 MB, free: 13.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.1203, allocations: 33.7 kB / 434 MB, free: 13.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.1204, allocations: 128.4 kB / 434.1 MB, free: 13.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.214e-05/0.1204, allocations: 27.77 kB / 434.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.727e-05/0.1205, allocations: 33.67 kB / 434.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1206, allocations: 342.8 kB / 434.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.948e-05/0.1207, allocations: 23.98 kB / 434.5 MB, free: 12.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.1208, allocations: 103.9 kB / 434.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.121, allocations: 105.9 kB / 434.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.121, allocations: 0 / 434.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002613/0.1213, allocations: 149.6 kB / 434.9 MB, free: 12.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1213, allocations: 4 kB / 434.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.1213, allocations: 64 / 434.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.1213, allocations: 8 kB / 434.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.1215, allocations: 27.92 kB / 434.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.1215, allocations: 4 kB / 434.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.787e-05/0.1215, allocations: 7.938 kB / 434.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.1216, allocations: 4 kB / 434.9 MB, free: 12.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001505/0.1217, allocations: 165.9 kB / 435.1 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.1218, allocations: 81.44 kB / 435.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.543e-05/0.1219, allocations: 29.73 kB / 435.2 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.1219, allocations: 4 kB / 435.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1219, allocations: 0 / 435.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.299e-06/0.1219, allocations: 3.938 kB / 435.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002503/0.1222, allocations: 249.5 kB / 435.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1222, allocations: 3.984 kB / 435.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.53e-05/0.1222, allocations: 16.08 kB / 435.5 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.1222, allocations: 8 kB / 435.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.1222, allocations: 0 / 435.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.1223, allocations: 4 kB / 435.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1223, allocations: 0 / 435.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002966/0.1225, allocations: 191.3 kB / 435.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.1227, allocations: 124.9 kB / 435.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.1227, allocations: 0 / 435.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.091e-05/0.1228, allocations: 8 kB / 435.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.9e-05/0.1228, allocations: 11.92 kB / 435.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.55e-05/0.1228, allocations: 4 kB / 435.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002642/0.1231, allocations: 257.9 kB / 436.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1231, allocations: 0 / 436.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000269/0.1234, allocations: 35.94 kB / 436.1 MB, free: 11.13 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.002012/0.1254, allocations: 1.034 MB / 437.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002591/0.1256, allocations: 87.83 kB / 437.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1256, allocations: 0 / 437.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001043/0.1258, allocations: 27.98 kB / 437.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004517/0.1262, allocations: 93.19 kB / 437.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002848/0.1291, allocations: 2.317 MB / 439.7 MB, free: 7.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.1295, allocations: 0.7515 MB / 440.4 MB, free: 6.781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.911e-05/0.1296, allocations: 25.53 kB / 440.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.1297, allocations: 63.42 kB / 440.5 MB, free: 6.699 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1297, allocations: 0 / 440.5 MB, free: 6.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03837/0.1681, allocations: 5.713 MB / 446.2 MB, free: 1.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.37/8.538, allocations: 3.938 kB / 446.2 MB, free: 1.125 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.038907764013857] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 8.829722156282514 8.840443551 8.722138915 Calling exit ...