Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 107.8 kB / 18.48 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002134/0.002134, allocations: 198.6 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 225.6 MB / 249.8 MB, free: 3.586 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 47.92 kB / 366.3 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09487/0.09642, allocations: 52.15 MB / 418.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003501/0.09992, allocations: 1.911 MB / 420.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.1019, allocations: 1.184 MB / 421.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.1021, allocations: 7.875 kB / 421.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003075/0.1024, allocations: 67.66 kB / 421.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002586/0.1026, allocations: 99.58 kB / 421.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006909/0.1033, allocations: 254.8 kB / 422 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002495/0.1036, allocations: 179.5 kB / 422.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.922e-05/0.1037, allocations: 25.55 kB / 422.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.1038, allocations: 87.56 kB / 422.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.1039, allocations: 83.67 kB / 422.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.307e-05/0.1039, allocations: 12 kB / 422.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.1041, allocations: 67.95 kB / 422.4 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.634e-05/0.1042, allocations: 59.7 kB / 422.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.505e-05/0.1042, allocations: 75.48 kB / 422.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003557/0.1046, allocations: 250.9 kB / 422.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1046, allocations: 0 / 422.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1046, allocations: 0 / 422.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1046, allocations: 3.938 kB / 422.8 MB, free: 8.227 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000786/0.1054, allocations: 0.5542 MB / 423.4 MB, free: 7.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1054, allocations: 8.031 kB / 423.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.459e-05/0.1055, allocations: 4.188 kB / 423.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.83e-05/0.1055, allocations: 38.73 kB / 423.4 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.188e-05/0.1056, allocations: 24.8 kB / 423.4 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00045/0.106, allocations: 303.7 kB / 423.7 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/0.106, allocations: 20.12 kB / 423.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/0.106, allocations: 4 kB / 423.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003878/0.1064, allocations: 178.7 kB / 423.9 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.1064, allocations: 8 kB / 423.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.1065, allocations: 3.938 kB / 424 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1065, allocations: 0 / 424 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.1066, allocations: 39.92 kB / 424 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005649/0.1072, allocations: 399.2 kB / 424.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.1074, allocations: 142.5 kB / 424.5 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.1076, allocations: 59.42 kB / 424.6 MB, free: 6.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.1076, allocations: 3.938 kB / 424.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001822/0.1078, allocations: 79.38 kB / 424.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.453e-06/0.1078, allocations: 0 / 424.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004423/0.1082, allocations: 169.5 kB / 424.8 MB, free: 5.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001529/0.1084, allocations: 183.9 kB / 425 MB, free: 5.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003898/0.1088, allocations: 342.6 kB / 425.3 MB, free: 5.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.1088, allocations: 25.7 kB / 425.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.1089, allocations: 136.3 kB / 425.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.324e-05/0.1089, allocations: 23.83 kB / 425.5 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.109e-05/0.109, allocations: 37.98 kB / 425.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1091, allocations: 326.8 kB / 425.9 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.837e-05/0.1092, allocations: 31.98 kB / 425.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.1094, allocations: 96.56 kB / 426 MB, free: 4.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001981/0.1096, allocations: 105.9 kB / 426.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1096, allocations: 0 / 426.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002719/0.1098, allocations: 141.4 kB / 426.2 MB, free: 4.402 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.1099, allocations: 10.34 kB / 426.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1099, allocations: 0 / 426.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.1099, allocations: 4 kB / 426.3 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.11, allocations: 24.23 kB / 426.3 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.11, allocations: 7.938 kB / 426.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.105e-05/0.1101, allocations: 11.95 kB / 426.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.1101, allocations: 8.188 kB / 426.3 MB, free: 4.34 MB / 350.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.0001441/0.1102, allocations: 158.3 kB / 426.5 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.1104, allocations: 81.48 kB / 426.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.724e-05/0.1104, allocations: 33.64 kB / 426.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1104, allocations: 0 / 426.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.507e-06/0.1104, allocations: 7.938 kB / 426.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1104, allocations: 0 / 426.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002386/0.1107, allocations: 249.6 kB / 426.8 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1107, allocations: 4.094 kB / 426.8 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.368e-05/0.1107, allocations: 19.94 kB / 426.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.1107, allocations: 0 / 426.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.1108, allocations: 7.984 kB / 426.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.1108, allocations: 0 / 426.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.1108, allocations: 3.938 kB / 426.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003011/0.1111, allocations: 191.4 kB / 427.1 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.1112, allocations: 116.9 kB / 427.2 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/0.1112, allocations: 3.938 kB / 427.2 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.99e-05/0.1113, allocations: 8 kB / 427.2 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.1113, allocations: 11.92 kB / 427.2 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.1113, allocations: 4.047 kB / 427.2 MB, free: 3.344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002544/0.1116, allocations: 249.9 kB / 427.4 MB, free: 3.098 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1116, allocations: 0 / 427.4 MB, free: 3.098 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002769/0.1119, allocations: 39.94 kB / 427.5 MB, free: 3.059 MB / 350.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.002138/0.114, allocations: 1.041 MB / 428.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002547/0.1143, allocations: 71.91 kB / 428.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1143, allocations: 3.938 kB / 428.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.008e-05/0.1144, allocations: 27.98 kB / 428.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004516/0.1148, allocations: 77.66 kB / 428.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.1178, allocations: 2.286 MB / 431 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.1182, allocations: 0.7592 MB / 431.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.23e-05/0.1182, allocations: 21.55 kB / 431.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.1184, allocations: 67.34 kB / 431.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1184, allocations: 4 kB / 431.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02401/0.1424, allocations: 5.651 MB / 437.5 MB, free: 9.152 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.233/8.375, allocations: 6.562 kB / 437.5 MB, free: 9.148 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.917242817988154] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 8.563175637973472 8.745604023 8.63832995 Calling exit ...