Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.001531/0.001531, allocations: 108.6 kB / 19.8 MB, free: 2.5 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.001752/0.001752, allocations: 215.1 kB / 23 MB, free: 5.582 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.424/1.424, allocations: 230.5 MB / 256.5 MB, free: 8.168 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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",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.002522/0.002522, allocations: 67.83 kB / 376.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2627, allocations: 53.32 MB / 429.5 MB, free: 7.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003351/0.2661, allocations: 1.947 MB / 431.5 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.2681, allocations: 1.227 MB / 432.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.2683, allocations: 4 kB / 432.7 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005591/0.2688, allocations: 158.2 kB / 432.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003804/0.2692, allocations: 155.4 kB / 433 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004468/0.2696, allocations: 167.4 kB / 433.2 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002406/0.2699, allocations: 183.5 kB / 433.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.27, allocations: 29.48 kB / 433.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.2701, allocations: 75.69 kB / 433.4 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001182/0.2702, allocations: 83.61 kB / 433.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.427e-05/0.2702, allocations: 12 kB / 433.5 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.2704, allocations: 51.91 kB / 433.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.973e-05/0.2704, allocations: 47.83 kB / 433.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.906e-05/0.2705, allocations: 67.55 kB / 433.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003185/0.2708, allocations: 219.5 kB / 433.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2708, allocations: 0 / 433.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2708, allocations: 0 / 433.9 MB, free: 3.031 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.2708, allocations: 0 / 433.9 MB, free: 3.031 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007566/0.2716, allocations: 0.5194 MB / 434.4 MB, free: 2.457 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.2716, allocations: 8.031 kB / 434.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.741e-05/0.2717, allocations: 34.75 kB / 434.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.981e-05/0.2717, allocations: 28.78 kB / 434.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.2721, allocations: 274.9 kB / 434.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.76e-05/0.2721, allocations: 8.359 kB / 434.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.2721, allocations: 7.938 kB / 434.8 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003213/0.2724, allocations: 149.7 kB / 434.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.2725, allocations: 0 / 434.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.2725, allocations: 0 / 434.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.2725, allocations: 4 kB / 434.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.821e-05/0.2726, allocations: 35.92 kB / 435 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004851/0.2731, allocations: 382.3 kB / 435.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.2733, allocations: 103.9 kB / 435.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.487e-05/0.2734, allocations: 46.56 kB / 435.5 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.2734, allocations: 0 / 435.5 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001493/0.2736, allocations: 71.33 kB / 435.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.2736, allocations: 4 kB / 435.6 MB, free: 1.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000357/0.2739, allocations: 141.5 kB / 435.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.009e-05/0.274, allocations: 136.5 kB / 435.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003183/0.2743, allocations: 276.9 kB / 436.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.2743, allocations: 29.7 kB / 436.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.773e-05/0.2744, allocations: 116.1 kB / 436.2 MB, free: 416 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.159e-05/0.2745, allocations: 12.16 kB / 436.3 MB, free: 404 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.147e-05/0.2745, allocations: 37.66 kB / 436.3 MB, free: 360 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.2747, allocations: 330.8 kB / 436.6 MB, free: 20 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.3e-05/0.2747, allocations: 19.98 kB / 436.6 MB, free: 0 / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.2748, allocations: 66 kB / 436.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/0.275, allocations: 80.25 kB / 436.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.275, allocations: 0 / 436.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002132/0.2752, allocations: 121.4 kB / 436.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.2752, allocations: 4.125 kB / 436.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2752, allocations: 4 kB / 436.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.2752, allocations: 4 kB / 436.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.656e-05/0.2753, allocations: 11.98 kB / 436.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.783e-05/0.2753, allocations: 7.938 kB / 436.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.526e-05/0.2754, allocations: 11.88 kB / 436.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.2754, allocations: 4 kB / 436.9 MB, free: 15.65 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.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 (11): * Single equations (assignments): 11 * 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.000144/0.2756, allocations: 150.1 kB / 437.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.611e-05/0.2757, allocations: 73.48 kB / 437.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000225/0.2759, allocations: 103.4 kB / 437.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2759, allocations: 0 / 437.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2759, allocations: 0 / 437.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.2759, allocations: 3.938 kB / 437.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002194/0.2761, allocations: 229.5 kB / 437.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2761, allocations: 0 / 437.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.954e-05/0.2761, allocations: 11.92 kB / 437.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2761, allocations: 4 kB / 437.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.2762, allocations: 0 / 437.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.2762, allocations: 4.062 kB / 437.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2762, allocations: 4 kB / 437.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002553/0.2764, allocations: 158.6 kB / 437.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.2765, allocations: 108.9 kB / 437.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.2766, allocations: 8 kB / 437.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.94e-05/0.2766, allocations: 8 kB / 437.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.2766, allocations: 11.92 kB / 437.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.2767, allocations: 4 kB / 437.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00021/0.2769, allocations: 200.5 kB / 438 MB, free: 14.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2769, allocations: 0 / 438 MB, free: 14.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002463/0.2771, allocations: 27.94 kB / 438 MB, free: 14.45 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (9): * Single equations (assignments): 7 * 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.00192/0.279, allocations: 1.009 MB / 439 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002302/0.2793, allocations: 67.84 kB / 439.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2793, allocations: 0 / 439.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.045e-05/0.2794, allocations: 24.23 kB / 439.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004021/0.2798, allocations: 76.25 kB / 439.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.2822, allocations: 1.955 MB / 441.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.2826, allocations: 0.736 MB / 441.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.346e-05/0.2826, allocations: 21.55 kB / 441.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.963e-05/0.2827, allocations: 51.42 kB / 442 MB, free: 10.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2827, allocations: 0 / 442 MB, free: 10.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02971/0.3124, allocations: 4.694 MB / 446.7 MB, free: 5.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.845/8.157, allocations: 7.438 kB / 446.7 MB, free: 5.855 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.48560045598424] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y'] 8.282270864001475 8.307654491 8.0322352 Calling exit ...