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.001307/0.001307, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001509/0.001509, allocations: 188.3 kB / 24.49 MB, free: 3.941 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.35/1.35, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.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.001406/0.001406, allocations: 47.88 kB / 371.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.234, allocations: 52.18 MB / 423.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003432/0.2374, allocations: 1.881 MB / 425.2 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00206/0.2395, allocations: 1.107 MB / 426.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.2397, allocations: 7.938 kB / 426.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003656/0.24, allocations: 55.67 kB / 426.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003073/0.2403, allocations: 107.5 kB / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007253/0.2411, allocations: 269.3 kB / 426.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002463/0.2413, allocations: 183.5 kB / 426.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.2414, allocations: 21.73 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.2415, allocations: 79.69 kB / 427 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.2417, allocations: 87.61 kB / 427.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.795e-05/0.2417, allocations: 15.94 kB / 427.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.2418, allocations: 67.95 kB / 427.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.853e-05/0.2419, allocations: 59.81 kB / 427.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.873e-05/0.242, allocations: 59.55 kB / 427.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.2424, allocations: 251.7 kB / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2424, allocations: 4 kB / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2424, allocations: 0 / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.2424, allocations: 0 / 427.6 MB, free: 10.14 MB / 334.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.0007849/0.2432, allocations: 490.4 kB / 428.1 MB, free: 9.621 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.2432, allocations: 8.031 kB / 428.1 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.883e-05/0.2432, allocations: 4.188 kB / 428.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.401e-05/0.2433, allocations: 38.73 kB / 428.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.673e-05/0.2433, allocations: 24.8 kB / 428.1 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004893/0.2438, allocations: 233.5 kB / 428.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.2439, allocations: 16.06 kB / 428.4 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.2439, allocations: 4 kB / 428.4 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004208/0.2443, allocations: 231.8 kB / 428.6 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.2443, allocations: 7.922 kB / 428.6 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.2443, allocations: 7.938 kB / 428.6 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.2443, allocations: 0 / 428.6 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.2445, allocations: 47.91 kB / 428.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005155/0.245, allocations: 358.3 kB / 429 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/0.2453, allocations: 138.5 kB / 429.2 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.2454, allocations: 55.41 kB / 429.2 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.042e-05/0.2454, allocations: 8 kB / 429.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000196/0.2456, allocations: 87.31 kB / 429.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.663e-06/0.2456, allocations: 4 kB / 429.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004294/0.246, allocations: 169.4 kB / 429.5 MB, free: 8.016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.2462, allocations: 187.9 kB / 429.7 MB, free: 7.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003542/0.2465, allocations: 337.8 kB / 430 MB, free: 7.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.2465, allocations: 33.7 kB / 430 MB, free: 7.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.2466, allocations: 124.4 kB / 430.1 MB, free: 7.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.982e-05/0.2467, allocations: 23.83 kB / 430.2 MB, free: 7.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.989e-05/0.2467, allocations: 38.08 kB / 430.2 MB, free: 7.219 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.2469, allocations: 338.8 kB / 430.5 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.673e-05/0.247, allocations: 27.97 kB / 430.6 MB, free: 6.852 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001675/0.2471, allocations: 177.6 kB / 430.7 MB, free: 6.629 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001767/0.2473, allocations: 101.9 kB / 430.8 MB, free: 6.508 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.2473, allocations: 4 kB / 430.8 MB, free: 6.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002645/0.2476, allocations: 145.3 kB / 431 MB, free: 6.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.2476, allocations: 8 kB / 431 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.2476, allocations: 0 / 431 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.2476, allocations: 4 kB / 431 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.2477, allocations: 19.98 kB / 431 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.2477, allocations: 7.938 kB / 431 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.249e-05/0.2478, allocations: 11.95 kB / 431 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.2478, allocations: 8.188 kB / 431 MB, free: 6.297 MB / 334.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.0001507/0.248, allocations: 162.5 kB / 431.2 MB, free: 6.129 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.2481, allocations: 81.48 kB / 431.3 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002741/0.2484, allocations: 123.4 kB / 431.4 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2484, allocations: 4 kB / 431.4 MB, free: 5.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.2484, allocations: 12.17 kB / 431.4 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2484, allocations: 4 kB / 431.4 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.2486, allocations: 196.6 kB / 431.6 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2486, allocations: 12.09 kB / 431.6 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.909e-05/0.2487, allocations: 15.98 kB / 431.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2487, allocations: 0 / 431.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.2487, allocations: 8 kB / 431.6 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.2487, allocations: 3.938 kB / 431.6 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.2487, allocations: 7.938 kB / 431.7 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/0.249, allocations: 191.4 kB / 431.8 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.202e-05/0.2491, allocations: 35.83 kB / 431.9 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.06e-05/0.2491, allocations: 11.94 kB / 431.9 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.347e-05/0.2492, allocations: 4 kB / 431.9 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.682e-05/0.2492, allocations: 19.92 kB / 431.9 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.2493, allocations: 7.984 kB / 431.9 MB, free: 5.32 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002419/0.2495, allocations: 241.2 kB / 432.2 MB, free: 5.082 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2495, allocations: 4 kB / 432.2 MB, free: 5.078 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002689/0.2498, allocations: 39.92 kB / 432.2 MB, free: 5.039 MB / 334.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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.002034/0.2518, allocations: 1.075 MB / 433.3 MB, free: 4.113 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002408/0.252, allocations: 83.84 kB / 433.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.252, allocations: 4 kB / 433.4 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.748e-05/0.2521, allocations: 31.97 kB / 433.4 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.2526, allocations: 77.83 kB / 433.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.2551, allocations: 2.297 MB / 435.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.2553, allocations: 152 kB / 435.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.137e-05/0.2553, allocations: 25.62 kB / 435.9 MB, free: 1.297 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.2554, allocations: 63.42 kB / 436 MB, free: 1.238 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.2555, allocations: 3.938 kB / 436 MB, free: 1.234 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/0.2824, allocations: 6.106 MB / 442.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.07, allocations: 6.641 kB / 442.1 MB, free: 11.23 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.414313298999332] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 11.283709507086314 11.310296837 11.062754627 Calling exit ...