Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001265/0.001265, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001355/0.001355, allocations: 208.7 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 230.5 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002586/0.002586, allocations: 55.91 kB / 378.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3615, allocations: 53.39 MB / 431.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003841/0.3654, allocations: 1.878 MB / 433.8 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.3677, allocations: 1.219 MB / 435 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001817/0.3679, allocations: 7.875 kB / 435 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000458/0.3683, allocations: 71.66 kB / 435.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004909/0.3688, allocations: 135.4 kB / 435.2 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008439/0.3697, allocations: 226.6 kB / 435.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002905/0.3699, allocations: 179.5 kB / 435.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.3701, allocations: 27.84 kB / 435.6 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.3702, allocations: 75.69 kB / 435.7 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.3703, allocations: 87.61 kB / 435.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.598e-05/0.3704, allocations: 8 kB / 435.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001771/0.3705, allocations: 83.88 kB / 435.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.969e-05/0.3706, allocations: 43.84 kB / 435.9 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.39e-05/0.3707, allocations: 63.53 kB / 436 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004191/0.3711, allocations: 247 kB / 436.2 MB, free: 2.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3711, allocations: 7.938 kB / 436.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.3711, allocations: 0 / 436.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.3712, allocations: 0 / 436.2 MB, free: 2.133 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.0008455/0.372, allocations: 474.6 kB / 436.7 MB, free: 1.633 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.3721, allocations: 8.031 kB / 436.7 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.161e-05/0.3721, allocations: 4.188 kB / 436.7 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.698e-05/0.3721, allocations: 38.73 kB / 436.7 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.277e-05/0.3722, allocations: 24.8 kB / 436.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005358/0.3727, allocations: 241.4 kB / 437 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.3728, allocations: 4.375 kB / 437 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.515e-05/0.3728, allocations: 12.31 kB / 437 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004512/0.3732, allocations: 210.9 kB / 437.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3732, allocations: 0 / 437.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.3733, allocations: 0 / 437.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.3733, allocations: 0 / 437.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001317/0.3734, allocations: 43.91 kB / 437.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005987/0.374, allocations: 349.5 kB / 437.6 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002798/0.3743, allocations: 115.9 kB / 437.7 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.3744, allocations: 46.5 kB / 437.8 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-05/0.3744, allocations: 7.984 kB / 437.8 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002118/0.3746, allocations: 79.38 kB / 437.8 MB, free: 308 kB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.3746, allocations: 0 / 437.8 MB, free: 308 kB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.00044/0.3751, allocations: 165.4 kB / 438 MB, free: 136 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.3752, allocations: 162.2 kB / 438.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000419/0.3756, allocations: 333.9 kB / 438.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.3757, allocations: 29.7 kB / 438.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.3758, allocations: 132.1 kB / 438.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.3758, allocations: 15.89 kB / 438.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.782e-05/0.3759, allocations: 29.72 kB / 438.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.3761, allocations: 338.8 kB / 439 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.644e-05/0.3762, allocations: 27.92 kB / 439.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.3763, allocations: 176.3 kB / 439.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.3765, allocations: 84.22 kB / 439.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3765, allocations: 0 / 439.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002595/0.3767, allocations: 133.4 kB / 439.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.3768, allocations: 8 kB / 439.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3768, allocations: 128 / 439.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.3768, allocations: 4 kB / 439.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.3769, allocations: 23.92 kB / 439.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.3769, allocations: 4 kB / 439.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.666e-05/0.377, allocations: 7.938 kB / 439.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.377, allocations: 7.938 kB / 439.5 MB, free: 14.52 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,table.y,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.0001605/0.3772, allocations: 150.6 kB / 439.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.639e-05/0.3773, allocations: 73.75 kB / 439.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.3776, allocations: 127.4 kB / 439.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3776, allocations: 4 kB / 439.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.3776, allocations: 8 kB / 439.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/0.3776, allocations: 0 / 439.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002154/0.3778, allocations: 200.6 kB / 440 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.3778, allocations: 4 kB / 440 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-05/0.3779, allocations: 11.98 kB / 440.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.3779, allocations: 4 kB / 440.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.3779, allocations: 7.938 kB / 440.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3779, allocations: 0 / 440.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3779, allocations: 4 kB / 440.1 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/0.3782, allocations: 178.5 kB / 440.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.441e-05/0.3783, allocations: 39.83 kB / 440.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.971e-05/0.3783, allocations: 8 kB / 440.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.864e-05/0.3784, allocations: 4 kB / 440.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.99e-05/0.3784, allocations: 11.97 kB / 440.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.297e-05/0.3785, allocations: 11.94 kB / 440.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002692/0.3787, allocations: 249.1 kB / 440.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3787, allocations: 0 / 440.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002793/0.379, allocations: 35.94 kB / 440.6 MB, free: 13.32 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,table.y,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 (10): * Single equations (assignments): 8 * 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.002324/0.3813, allocations: 1.049 MB / 441.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000272/0.3816, allocations: 75.89 kB / 441.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3816, allocations: 0 / 441.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.613e-05/0.3817, allocations: 31.97 kB / 441.8 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.0004516/0.3822, allocations: 82.14 kB / 441.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002838/0.385, allocations: 2.245 MB / 444.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001396/0.3851, allocations: 131.9 kB / 444.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.3852, allocations: 33.61 kB / 444.2 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.3854, allocations: 59.41 kB / 444.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3854, allocations: 0 / 444.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02858/0.4139, allocations: 5.852 MB / 450.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.51, allocations: 3.859 kB / 450.2 MB, free: 3.812 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.019232667051256] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y'] 11.740698492038064 11.763597383 11.38783757 Calling exit ...