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.001832/0.001832, allocations: 110.4 kB / 21.23 MB, free: 0.5312 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.002222/0.002222, allocations: 214.9 kB / 24.54 MB, free: 3.922 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.439/1.439, allocations: 230.6 MB / 258.3 MB, free: 8.043 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.001956/0.001956, allocations: 64.78 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2646, allocations: 53.36 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004506/0.2691, allocations: 1.956 MB / 433.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002509/0.2716, allocations: 1.336 MB / 435.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.2718, allocations: 7.938 kB / 435.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002931/0.2721, allocations: 63.67 kB / 435.3 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004009/0.2725, allocations: 151.3 kB / 435.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006868/0.2732, allocations: 234.8 kB / 435.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002914/0.2735, allocations: 187.5 kB / 435.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.2736, allocations: 21.8 kB / 435.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.2737, allocations: 91.56 kB / 435.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.2739, allocations: 91.61 kB / 436 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.571e-05/0.2739, allocations: 8 kB / 436 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001991/0.2741, allocations: 79.88 kB / 436.1 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.882e-05/0.2742, allocations: 51.83 kB / 436.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.936e-05/0.2743, allocations: 87.41 kB / 436.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003978/0.2747, allocations: 255.2 kB / 436.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2747, allocations: 0 / 436.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2747, allocations: 0 / 436.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.2747, allocations: 0 / 436.5 MB, free: 2.289 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.0007869/0.2755, allocations: 494.4 kB / 437 MB, free: 1.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.2755, allocations: 12.02 kB / 437 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.251e-05/0.2756, allocations: 38.75 kB / 437 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.2756, allocations: 24.8 kB / 437.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004603/0.2761, allocations: 246.5 kB / 437.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.2761, allocations: 4.375 kB / 437.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.209e-05/0.2761, allocations: 11.94 kB / 437.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004025/0.2765, allocations: 187.2 kB / 437.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.2765, allocations: 0 / 437.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.2766, allocations: 4 kB / 437.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.2766, allocations: 7.938 kB / 437.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.2767, allocations: 43.86 kB / 437.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005975/0.2773, allocations: 374.3 kB / 437.9 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003052/0.2776, allocations: 142.5 kB / 438.1 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.2777, allocations: 51.42 kB / 438.1 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/0.2777, allocations: 16 kB / 438.1 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002143/0.278, allocations: 75.38 kB / 438.2 MB, free: 396 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.883e-06/0.278, allocations: 0 / 438.2 MB, free: 396 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004466/0.2784, allocations: 169.4 kB / 438.4 MB, free: 220 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/0.2786, allocations: 192.3 kB / 438.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004141/0.279, allocations: 352.1 kB / 438.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.279, allocations: 33.64 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.2791, allocations: 128.4 kB / 439.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.2791, allocations: 23.83 kB / 439.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.277e-05/0.2792, allocations: 37.66 kB / 439.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.2794, allocations: 334.8 kB / 439.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.747e-05/0.2794, allocations: 24 kB / 439.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.2796, allocations: 104.6 kB / 439.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/0.2798, allocations: 105.9 kB / 439.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2798, allocations: 0 / 439.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002735/0.2801, allocations: 137.5 kB / 439.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2801, allocations: 8 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2801, allocations: 0 / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.2801, allocations: 4 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.2802, allocations: 23.92 kB / 439.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.2802, allocations: 4 kB / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.636e-05/0.2803, allocations: 15.92 kB / 439.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.2803, allocations: 4 kB / 439.9 MB, free: 14.57 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.0001698/0.2805, allocations: 163.1 kB / 440 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.2806, allocations: 81.44 kB / 440.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002856/0.2809, allocations: 131.3 kB / 440.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.2809, allocations: 0 / 440.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.2809, allocations: 4 kB / 440.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.2809, allocations: 3.938 kB / 440.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002416/0.2812, allocations: 220.6 kB / 440.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2812, allocations: 0 / 440.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.659e-05/0.2812, allocations: 20.08 kB / 440.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.2812, allocations: 0 / 440.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.2812, allocations: 4 kB / 440.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.2812, allocations: 0 / 440.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.2813, allocations: 7.938 kB / 440.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003085/0.2816, allocations: 183.4 kB / 440.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.2817, allocations: 47.78 kB / 440.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.409e-05/0.2817, allocations: 4 kB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.144e-05/0.2818, allocations: 4 kB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.905e-05/0.2818, allocations: 15.86 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.2819, allocations: 8 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002819/0.2821, allocations: 251 kB / 441 MB, free: 13.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2821, allocations: 0 / 441 MB, free: 13.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002862/0.2824, allocations: 35.94 kB / 441 MB, free: 13.32 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.002038/0.2845, allocations: 1.037 MB / 442.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002502/0.2847, allocations: 83.83 kB / 442.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2847, allocations: 0 / 442.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.276e-05/0.2848, allocations: 27.98 kB / 442.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004315/0.2852, allocations: 79.61 kB / 442.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002886/0.2881, allocations: 2.312 MB / 444.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.2885, allocations: 0.7515 MB / 445.3 MB, free: 9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.2886, allocations: 41.59 kB / 445.3 MB, free: 8.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/0.2887, allocations: 63.42 kB / 445.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2887, allocations: 0 / 445.4 MB, free: 8.902 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03303/0.3218, allocations: 5.779 MB / 451.2 MB, free: 3.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.328/8.65, allocations: 10.33 kB / 451.2 MB, free: 3.168 MB / 350.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.05877433391288] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 8.798206884879619 8.823995201 8.545396833 Calling exit ...