Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001221/0.001221, allocations: 120 kB / 18.49 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.001315/0.001315, allocations: 215.1 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.454/1.454, allocations: 230.6 MB / 254.8 MB, free: 15.11 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.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 43.94 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09988/0.1014, allocations: 53.33 MB / 427 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003389/0.1048, allocations: 1.948 MB / 429 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.1069, allocations: 1.249 MB / 430.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.107, allocations: 7.938 kB / 430.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005975/0.1076, allocations: 147.5 kB / 430.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004843/0.1081, allocations: 159.3 kB / 430.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005291/0.1086, allocations: 179 kB / 430.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002766/0.1089, allocations: 199.4 kB / 430.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.109, allocations: 25.67 kB / 430.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.1092, allocations: 87.56 kB / 431 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001251/0.1093, allocations: 79.62 kB / 431.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.326e-05/0.1093, allocations: 8 kB / 431.1 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000152/0.1095, allocations: 67.89 kB / 431.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.652e-05/0.1095, allocations: 43.84 kB / 431.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.125e-05/0.1096, allocations: 75.47 kB / 431.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003602/0.11, allocations: 234.9 kB / 431.5 MB, free: 304 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.11, allocations: 4 kB / 431.5 MB, free: 300 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.11, allocations: 0 / 431.5 MB, free: 300 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.11, allocations: 0 / 431.5 MB, free: 300 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.1674/0.2774, allocations: 0.518 MB / 432 MB, free: 11.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.2774, allocations: 12.34 kB / 432 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.478e-05/0.2775, allocations: 1.875 kB / 432 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.479e-05/0.2775, allocations: 39.84 kB / 432.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.044e-05/0.2775, allocations: 28.3 kB / 432.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000354/0.2779, allocations: 277.1 kB / 432.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.2779, allocations: 7.031 kB / 432.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.2779, allocations: 12.11 kB / 432.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003486/0.2783, allocations: 170.9 kB / 432.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2783, allocations: 1.781 kB / 432.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.2783, allocations: 1.672 kB / 432.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.2783, allocations: 1.688 kB / 432.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.2784, allocations: 39.25 kB / 432.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004354/0.2789, allocations: 381.4 kB / 433 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002404/0.2791, allocations: 127.6 kB / 433.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.415e-05/0.2792, allocations: 60.42 kB / 433.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.2792, allocations: 3.297 kB / 433.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001454/0.2794, allocations: 77.72 kB / 433.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.704e-06/0.2794, allocations: 0 / 433.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003851/0.2798, allocations: 161.4 kB / 433.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.2798, allocations: 163.5 kB / 433.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.2801, allocations: 278.2 kB / 433.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.2801, allocations: 34.52 kB / 433.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.034e-05/0.2801, allocations: 125.3 kB / 434 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.2802, allocations: 14.84 kB / 434 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.946e-05/0.2802, allocations: 34.52 kB / 434 MB, free: 10.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.761e-05/0.2803, allocations: 333.3 kB / 434.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.307e-05/0.2803, allocations: 25 kB / 434.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.981e-05/0.2804, allocations: 84.08 kB / 434.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001225/0.2805, allocations: 97.73 kB / 434.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.2805, allocations: 1.156 kB / 434.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002018/0.2807, allocations: 138.4 kB / 434.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.2808, allocations: 5 kB / 434.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2808, allocations: 5.469 kB / 434.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.2808, allocations: 3.25 kB / 434.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.741e-05/0.2809, allocations: 14.05 kB / 434.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.2809, allocations: 5.953 kB / 434.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.891e-05/0.2809, allocations: 9.391 kB / 434.7 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.2809, allocations: 3.844 kB / 434.7 MB, free: 9.949 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,sample1.u,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 9.896e-05/0.281, allocations: 151.2 kB / 434.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.326e-05/0.2811, allocations: 80.61 kB / 435 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.004e-05/0.2812, allocations: 25.31 kB / 435 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2812, allocations: 5.375 kB / 435 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2812, allocations: 0 / 435 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2812, allocations: 0 / 435 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001618/0.2813, allocations: 241.8 kB / 435.2 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2814, allocations: 1.25 kB / 435.2 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.931e-05/0.2814, allocations: 12.19 kB / 435.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.2814, allocations: 1.281 kB / 435.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.2814, allocations: 2.781 kB / 435.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.2814, allocations: 2.125 kB / 435.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2814, allocations: 5.125 kB / 435.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002107/0.2816, allocations: 180.8 kB / 435.4 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.134e-05/0.2817, allocations: 110 kB / 435.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.2817, allocations: 7.094 kB / 435.5 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.105e-05/0.2818, allocations: 6.344 kB / 435.5 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.699e-05/0.2818, allocations: 5.141 kB / 435.5 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.2818, allocations: 9.828 kB / 435.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001491/0.282, allocations: 201.7 kB / 435.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.282, allocations: 0.7656 kB / 435.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002595/0.2822, allocations: 40.25 kB / 435.8 MB, free: 9.191 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,sample1.u,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.001745/0.284, allocations: 1.017 MB / 436.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.2842, allocations: 88.7 kB / 436.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2842, allocations: 4.062 kB / 436.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.432e-05/0.2843, allocations: 17.22 kB / 436.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.2847, allocations: 76.41 kB / 437 MB, free: 8.414 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.2866, allocations: 2.063 MB / 439.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001568/0.2867, allocations: 0.7389 MB / 439.8 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.76e-05/0.2868, allocations: 25.84 kB / 439.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.568e-05/0.2869, allocations: 55.22 kB / 439.9 MB, free: 6.094 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2869, allocations: 1.344 kB / 439.9 MB, free: 6.094 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02245/0.3093, allocations: 5.057 MB / 444.9 MB, free: 5.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.106/8.416, allocations: 5.094 kB / 444.9 MB, free: 5.25 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.889038736000657] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 8.59196480299579 8.603574893 8.490746876 Calling exit ...