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.002055/0.002055, allocations: 120.1 kB / 18.49 MB, free: 4.59 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.002757/0.002757, allocations: 214.2 kB / 21.45 MB, free: 1.637 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.685/1.685, allocations: 230.4 MB / 254.7 MB, free: 15.03 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.001849/0.001849, allocations: 59.89 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1172, allocations: 53.38 MB / 427.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003576/0.1208, allocations: 1.898 MB / 429 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0026/0.1234, allocations: 1.301 MB / 430.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/0.1236, allocations: 4 kB / 430.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003595/0.1239, allocations: 71.61 kB / 430.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003778/0.1243, allocations: 135.4 kB / 430.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006854/0.125, allocations: 225.6 kB / 430.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002505/0.1252, allocations: 183.5 kB / 430.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.1254, allocations: 17.56 kB / 430.9 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.1255, allocations: 87.61 kB / 431 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.1256, allocations: 79.67 kB / 431 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.286e-05/0.1256, allocations: 8 kB / 431.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.1258, allocations: 71.91 kB / 431.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.71e-05/0.1259, allocations: 63.69 kB / 431.2 MB, free: 476 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.088e-05/0.126, allocations: 75.48 kB / 431.3 MB, free: 400 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003421/0.1263, allocations: 239 kB / 431.5 MB, free: 160 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1263, allocations: 0 / 431.5 MB, free: 160 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1263, allocations: 0 / 431.5 MB, free: 160 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.1263, allocations: 3.938 kB / 431.5 MB, free: 156 kB / 350.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.2485/0.3748, allocations: 0.5417 MB / 432 MB, free: 10.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.793e-05/0.3749, allocations: 10.09 kB / 432 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.031e-05/0.3749, allocations: 2.406 kB / 432.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.843e-05/0.375, allocations: 38.58 kB / 432.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.82e-05/0.3751, allocations: 24.67 kB / 432.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005599/0.3756, allocations: 295.4 kB / 432.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.3756, allocations: 7.703 kB / 432.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.3757, allocations: 9.562 kB / 432.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004326/0.3761, allocations: 155 kB / 432.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.3761, allocations: 0 / 432.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.3761, allocations: 5.406 kB / 432.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.3761, allocations: 5.125 kB / 432.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001417/0.3763, allocations: 36.34 kB / 432.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005999/0.3769, allocations: 390.3 kB / 433 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002666/0.3771, allocations: 116.9 kB / 433.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.216e-05/0.3772, allocations: 44.55 kB / 433.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.5e-05/0.3773, allocations: 5.875 kB / 433.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002182/0.3775, allocations: 77.56 kB / 433.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 2.124e-06/0.3775, allocations: 0 / 433.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.000467/0.378, allocations: 157.6 kB / 433.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.733e-05/0.378, allocations: 161.4 kB / 433.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004197/0.3785, allocations: 333.8 kB / 433.9 MB, free: 9.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.3785, allocations: 30.42 kB / 433.9 MB, free: 9.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.939e-05/0.3786, allocations: 129.6 kB / 434 MB, free: 9.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.3786, allocations: 18.25 kB / 434 MB, free: 9.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.607e-05/0.3787, allocations: 32.66 kB / 434.1 MB, free: 9.715 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.005e-05/0.3787, allocations: 337.2 kB / 434.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.347e-05/0.3788, allocations: 21.16 kB / 434.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.3789, allocations: 88.77 kB / 434.5 MB, free: 9.336 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.3791, allocations: 86.75 kB / 434.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3791, allocations: 0 / 434.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002395/0.3793, allocations: 130.5 kB / 434.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3793, allocations: 10.91 kB / 434.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3793, allocations: 0 / 434.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.3793, allocations: 1.688 kB / 434.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.3795, allocations: 23.2 kB / 434.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.3795, allocations: 4.516 kB / 434.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.188e-05/0.3796, allocations: 10.86 kB / 434.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.3796, allocations: 7.219 kB / 434.8 MB, free: 9.25 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.0001107/0.3797, allocations: 150.9 kB / 434.9 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.026e-05/0.3798, allocations: 72.52 kB / 435 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.771e-05/0.3798, allocations: 25.7 kB / 435 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.3798, allocations: 1.312 kB / 435 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3798, allocations: 1.281 kB / 435 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3799, allocations: 8.938 kB / 435 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.38, allocations: 245.3 kB / 435.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.38, allocations: 1.344 kB / 435.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.968e-05/0.3801, allocations: 12.97 kB / 435.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.3801, allocations: 1.094 kB / 435.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.3801, allocations: 5.188 kB / 435.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.3801, allocations: 1.75 kB / 435.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3801, allocations: 1.031 kB / 435.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.3804, allocations: 172.1 kB / 435.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.574e-05/0.3805, allocations: 116.2 kB / 435.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.361e-05/0.3805, allocations: 3.25 kB / 435.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.898e-05/0.3806, allocations: 9.125 kB / 435.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.3806, allocations: 10.98 kB / 435.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.985e-05/0.3807, allocations: 10.94 kB / 435.6 MB, free: 8.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002583/0.3809, allocations: 252.2 kB / 435.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3809, allocations: 0 / 435.9 MB, free: 8.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000312/0.3812, allocations: 31.28 kB / 435.9 MB, free: 8.605 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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.001935/0.3832, allocations: 1.012 MB / 436.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002723/0.3834, allocations: 81.05 kB / 437 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3834, allocations: 0 / 437 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.249e-05/0.3835, allocations: 28.73 kB / 437 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/0.384, allocations: 62.72 kB / 437.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002822/0.3868, allocations: 2.228 MB / 439.3 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.3871, allocations: 0.7421 MB / 440 MB, free: 5.746 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001258/0.3872, allocations: 37.25 kB / 440.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.3873, allocations: 57.5 kB / 440.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3873, allocations: 0 / 440.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04019/0.4275, allocations: 5.428 MB / 445.6 MB, free: 4.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.27/8.697, allocations: 10.05 kB / 445.6 MB, free: 4.793 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.472356509999372] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y'] 8.877636207966134 8.890869902 8.761389722 Calling exit ...