Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 121 kB / 18.5 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 213.5 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 254.8 MB, free: 14.9 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 47.92 kB / 373.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1113, allocations: 53.33 MB / 427 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003765/0.1151, allocations: 1.942 MB / 428.9 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002342/0.1174, allocations: 1.328 MB / 430.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.1176, allocations: 7.938 kB / 430.3 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003639/0.1179, allocations: 67.66 kB / 430.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003923/0.1183, allocations: 135.4 kB / 430.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006866/0.119, allocations: 234 kB / 430.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002917/0.1193, allocations: 187.5 kB / 430.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.1194, allocations: 25.66 kB / 430.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.1196, allocations: 87.64 kB / 431 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.1197, allocations: 91.59 kB / 431.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.369e-05/0.1197, allocations: 8 kB / 431.1 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.1199, allocations: 71.89 kB / 431.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.497e-05/0.12, allocations: 55.77 kB / 431.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.1201, allocations: 83.42 kB / 431.3 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003954/0.1205, allocations: 254.9 kB / 431.6 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1205, allocations: 0 / 431.6 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1205, allocations: 0 / 431.6 MB, free: 296 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.1205, allocations: 0 / 431.6 MB, free: 296 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.1905/0.311, allocations: 0.5528 MB / 432.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.311, allocations: 9.219 kB / 432.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.473e-05/0.311, allocations: 4.766 kB / 432.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.598e-05/0.3111, allocations: 38.62 kB / 432.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.625e-05/0.3111, allocations: 30.36 kB / 432.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000409/0.3115, allocations: 302.7 kB / 432.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.3115, allocations: 4.031 kB / 432.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/0.3116, allocations: 8.75 kB / 432.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003621/0.3119, allocations: 184 kB / 432.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.3119, allocations: 0 / 432.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.312, allocations: 3.031 kB / 432.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.312, allocations: 2.531 kB / 432.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001242/0.3121, allocations: 42.02 kB / 432.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004447/0.3125, allocations: 405 kB / 433.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002441/0.3128, allocations: 139 kB / 433.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.333e-05/0.3129, allocations: 53.08 kB / 433.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.3129, allocations: 12.19 kB / 433.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001596/0.3131, allocations: 76.48 kB / 433.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.482e-06/0.3131, allocations: 0 / 433.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003803/0.3134, allocations: 175.6 kB / 433.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.3135, allocations: 190.9 kB / 433.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/0.3138, allocations: 350.4 kB / 434.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.3138, allocations: 28.23 kB / 434.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.93e-05/0.3139, allocations: 132.2 kB / 434.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.899e-05/0.3139, allocations: 22.66 kB / 434.3 MB, free: 9.832 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.817e-05/0.3139, allocations: 38 kB / 434.3 MB, free: 9.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.631e-05/0.314, allocations: 334.8 kB / 434.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.862e-05/0.3141, allocations: 28.67 kB / 434.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.3142, allocations: 101.9 kB / 434.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001398/0.3143, allocations: 109.4 kB / 434.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3143, allocations: 2.969 kB / 434.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002152/0.3145, allocations: 140.1 kB / 435 MB, free: 9.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.3145, allocations: 8.219 kB / 435 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3146, allocations: 2.219 kB / 435 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.3146, allocations: 2.25 kB / 435 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.3147, allocations: 23.14 kB / 435 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.3147, allocations: 2.125 kB / 435 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.931e-05/0.3148, allocations: 13.5 kB / 435.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.3148, allocations: 11.16 kB / 435.1 MB, free: 9.316 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.0001026/0.3149, allocations: 161.4 kB / 435.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.824e-05/0.315, allocations: 79.61 kB / 435.3 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.032e-05/0.315, allocations: 29.55 kB / 435.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.315, allocations: 6.062 kB / 435.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.315, allocations: 1.719 kB / 435.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.315, allocations: 6.188 kB / 435.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001536/0.3152, allocations: 251.4 kB / 435.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3152, allocations: 1.188 kB / 435.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.265e-05/0.3153, allocations: 16.77 kB / 435.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3153, allocations: 1.812 kB / 435.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.3153, allocations: 3.25 kB / 435.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.3153, allocations: 4.578 kB / 435.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.3153, allocations: 1.469 kB / 435.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002399/0.3155, allocations: 186.4 kB / 435.8 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.217e-05/0.3156, allocations: 122.6 kB / 435.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.185e-05/0.3156, allocations: 6.891 kB / 435.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.691e-05/0.3157, allocations: 6.969 kB / 435.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.3157, allocations: 8.375 kB / 435.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.3158, allocations: 11.52 kB / 436 MB, free: 8.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001926/0.316, allocations: 253.9 kB / 436.2 MB, free: 8.645 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.316, allocations: 1.156 kB / 436.2 MB, free: 8.645 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002736/0.3162, allocations: 38.84 kB / 436.2 MB, free: 8.641 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.001781/0.318, allocations: 1.038 MB / 437.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000236/0.3182, allocations: 87.03 kB / 437.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3182, allocations: 0 / 437.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.784e-05/0.3183, allocations: 26.58 kB / 437.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004286/0.3187, allocations: 79.3 kB / 437.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.3209, allocations: 2.333 MB / 439.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001646/0.3211, allocations: 0.7438 MB / 440.5 MB, free: 5.715 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.488e-05/0.3212, allocations: 32.28 kB / 440.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.067e-05/0.3212, allocations: 64.41 kB / 440.6 MB, free: 5.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3212, allocations: 0 / 440.6 MB, free: 5.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02268/0.3439, allocations: 5.729 MB / 446.4 MB, free: 4.766 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.026/8.37, allocations: 7.391 kB / 446.4 MB, free: 4.762 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_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_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.828113380994182] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 8.54520416498417 8.557709384 8.43425378 Calling exit ...