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.001715/0.001715, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001981/0.001981, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.376/1.376, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.00188/0.00188, allocations: 64.77 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2592, allocations: 53.37 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003571/0.2628, allocations: 1.944 MB / 433.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.2651, allocations: 1.341 MB / 435.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.2652, allocations: 7.938 kB / 435.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003135/0.2655, allocations: 63.67 kB / 435.3 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003587/0.2659, allocations: 143.3 kB / 435.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006732/0.2665, allocations: 237.4 kB / 435.6 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002716/0.2668, allocations: 191.5 kB / 435.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.2669, allocations: 21.8 kB / 435.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.2671, allocations: 91.56 kB / 435.9 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.2672, allocations: 87.66 kB / 436 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.2672, allocations: 8 kB / 436 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.2674, allocations: 87.88 kB / 436.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.776e-05/0.2675, allocations: 47.78 kB / 436.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.764e-05/0.2676, allocations: 87.41 kB / 436.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003784/0.268, allocations: 251.7 kB / 436.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.268, allocations: 0 / 436.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.268, allocations: 3.938 kB / 436.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.268, allocations: 0 / 436.5 MB, free: 2.285 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.0008303/0.2688, allocations: 494.4 kB / 437 MB, free: 1.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.2689, allocations: 8.031 kB / 437 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.696e-05/0.2689, allocations: 38.75 kB / 437 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.967e-05/0.269, allocations: 28.8 kB / 437.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004682/0.2694, allocations: 246.5 kB / 437.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.2694, allocations: 8.375 kB / 437.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.2695, allocations: 11.94 kB / 437.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003917/0.2699, allocations: 180.4 kB / 437.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.2699, allocations: 0 / 437.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.2699, allocations: 4 kB / 437.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.2699, allocations: 4 kB / 437.5 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001268/0.27, allocations: 35.92 kB / 437.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005745/0.2706, allocations: 374.3 kB / 437.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.2709, allocations: 142.5 kB / 438 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.271, allocations: 51.42 kB / 438.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-05/0.271, allocations: 12 kB / 438.1 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001914/0.2712, allocations: 79.38 kB / 438.2 MB, free: 404 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.2712, allocations: 4 kB / 438.2 MB, free: 400 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004172/0.2717, allocations: 169.3 kB / 438.4 MB, free: 224 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/0.2718, allocations: 188.3 kB / 438.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003831/0.2722, allocations: 356.1 kB / 438.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.2722, allocations: 29.7 kB / 438.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.2723, allocations: 132.4 kB / 439 MB, free: 15.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.807e-05/0.2723, allocations: 23.78 kB / 439.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.955e-05/0.2724, allocations: 37.66 kB / 439.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.2726, allocations: 334.8 kB / 439.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.447e-05/0.2726, allocations: 23.98 kB / 439.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.2728, allocations: 100.6 kB / 439.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001879/0.273, allocations: 113.8 kB / 439.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.273, allocations: 0 / 439.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002523/0.2732, allocations: 137.4 kB / 439.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.2732, allocations: 4 kB / 439.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.2732, allocations: 8.188 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.2733, allocations: 0 / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.2734, allocations: 27.92 kB / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.2734, allocations: 320 / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.454e-05/0.2735, allocations: 15.92 kB / 439.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.2735, allocations: 8 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.0001612/0.2737, allocations: 154.7 kB / 440 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.2738, allocations: 85.5 kB / 440.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002917/0.2741, allocations: 127.3 kB / 440.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.491e-06/0.2741, allocations: 4.031 kB / 440.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.2741, allocations: 4 kB / 440.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.2741, allocations: 3.938 kB / 440.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002555/0.2743, allocations: 220.6 kB / 440.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2743, allocations: 0 / 440.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.427e-05/0.2744, allocations: 15.98 kB / 440.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.2744, allocations: 4 kB / 440.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.2744, allocations: 3.938 kB / 440.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.2744, allocations: 8.031 kB / 440.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2744, allocations: 0 / 440.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003055/0.2747, allocations: 183.3 kB / 440.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.385e-05/0.2748, allocations: 47.78 kB / 440.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.165e-05/0.2749, allocations: 4 kB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.402e-05/0.2749, allocations: 8 kB / 440.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.089e-05/0.275, allocations: 11.92 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.275, allocations: 8 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002723/0.2753, allocations: 251 kB / 441 MB, free: 13.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2753, allocations: 0 / 441 MB, free: 13.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002793/0.2756, allocations: 39.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.002001/0.2776, allocations: 1.041 MB / 442.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002685/0.2779, allocations: 88.03 kB / 442.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2779, allocations: 0 / 442.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.396e-05/0.2779, allocations: 27.98 kB / 442.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004512/0.2784, allocations: 79.3 kB / 442.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.2811, allocations: 2.315 MB / 444.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.2815, allocations: 0.7515 MB / 445.3 MB, free: 8.988 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.7e-05/0.2816, allocations: 29.61 kB / 445.3 MB, free: 8.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.2817, allocations: 59.42 kB / 445.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2817, allocations: 0 / 445.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03091/0.3126, allocations: 5.789 MB / 451.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.984/8.296, allocations: 3.984 kB / 451.2 MB, free: 3.164 MB / 350.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79104e-05 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: 10.697263939771801] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 8.434180338867009 8.448460944 8.177547917 Calling exit ...